Hallo Community,
ich als blutiger Anfänger habe mal probiert, ein Baejumping Filterscript zu erstellen. Alllerdings bekomme ich sehr viele Fehler. Kann aml bitte einer schauen, was daran falsch ist??? Danke im Vorraus
/*
****************************************************
|||||||Basejumping Filterscript von Lucas93 ||||||||
||||||| Copyright darf nicht entfernt werden |||||||
****************************************************
*/
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <Seifalk>
#include <seif_text>
static gTeam[MAX_PLAYERS];
#define FILTERSCRIPT
#define COLOR_GREY 0xA9A9A9AA
new basejumpls;
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Baejumping GmbH und Co. KG");
print("--------------------------------------\n");
//____________________________BASEJUMPLS 1______________________________________________________________________
basejumpls = CreateObject(7386,1228.7670,-1507.3264,500.1562,0,0,0); // fallschirmabsprung
AddStaticPickup(371,2,1216.3636,-1498.9121,506.1558); //Fallschirm __
AddStaticPickup(371,2,1232.2251,-1499.6029,506.1558);
AddStaticPickup(371,2,1232.6626,-1482.0837,506.1558);
AddStaticPickup(371,2,1214.7312,-1481.0465,506.1558); //Fallschirm __
AddStaticPickup(1239,1,1225.2531,-1499.0300,506.1558); //info auf der plattform
AddStaticPickup(1239,1,1024.1675,-1553.4668,13.5695); //info auf der straße
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
main()
{
print("\n----------------------------------");
print(" Baejumping GmbH und Co. KG");
print("----------------------------------\n");
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//_________________________________Hier ist alles mit Basejump_____________________________________
if(strcmp(cmd, "/basejump", true) == 0)
{
if(PlayerToPoint(2,playerid,1024.1675,-1553.4668,13.5695))
{
SetPlayerPos(playerid,1225.1124,-1490.4791,508.1558);
GivePlayerMoney(playerid,-200);
}
}
if(strcmp(cmd, "/dochnicht", true) == 0)
{
if(PlayerToPoint(100,1225.2531,-1499.0300,506.1558))
{
SetPlayerPos(1024.1675,-1553.4668,13.5695);
SendClientMessage(playerid,0x00FF00FF,"Okay. Ich kann verstehen, dass du Angst hast. Du hast das Geld erstattet bekommen!.");
}
}
if(strcmp(cmd, "/info", true) == 0)
{
if(PlayerToPoint(2.0, playerid,1225.2531,-1499.0300,506.1558 ))// Info : Basejumpplattform
{
SendClientMessage(playerid, COLOR_GREY, "--------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, 0xFFFFFF, "Willkommen bei der Basejump Plattform.");
SendClientMessage(playerid, 0xFFFFFF, "Alles ist bezahlt. Du kannst dir einfach einen Fallschirmen nehmen und ein wenig entspannen.");
SendClientMessage(playerid, 0xFFFFFF, "Wenn du Angst hast gib einfach /dochnicht ein.");
SendClientMessage(playerid, 0xFFFFFF, "VIEL SPAß.");
SendClientMessage(playerid, COLOR_GREY, "--------------------------------------------------------------------------------------------------");
return 1;
}
if(PlayerToPoint(2.0, playerid,1024.1675,-1553.4668,13.5695 ))// Info : Basejumpauf dem Boden
{
SendClientMessage(playerid, COLOR_GREY, "--------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, 0xFFFFFF, "Willkommen bei der Basejump GmbH und Co. KG.");
SendClientMessage(playerid, 0xFFFFFF, "Wenn du mal deinem Leben einen Kick geben willst, geh Fallschirmspringen.");
SendClientMessage(playerid, 0xFFFFFF, "Interesse??? Gib einfach /basejump ein.");
SendClientMessage(playerid, 0xFFFFFF, "Die Benutzung kostet 200 Dollar.");
SendClientMessage(playerid, COLOR_GREY, "--------------------------------------------------------------------------------------------------");
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
// Hier ist mein Basejump Info Icon auf der Plattform
if(PlayerToPoint(2.0, playerid, 1225.2531,-1499.0300,506.1558 ))
{
GameTextForPlayer(playerid, "~w~Info-Point~n~~r~Gib hier /info ein", 5000, 3);
return 1;
}
// Hier ist mein Basejump Info Icon auf der Erde
if(PlayerToPoint(2.0, playerid, 1024.1675,-1553.4668,13.5695))
{
GameTextForPlayer(playerid, "~w~Basejumping!!!~n~~r~Gib hier /info ein", 5000, 3);
return 1;
}
return 1;
}
//--------------------------------------------[PlayerToPoint]------------------------------------------
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
Und hier sind nochmal die Fehler
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(70) : error 017: undefined symbol "cmd"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(72) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(78) : error 017: undefined symbol "cmd"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(80) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(82) : warning 213: tag mismatch
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(82) : warning 202: number of arguments does not match definition
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(86) : error 017: undefined symbol "cmd"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(88) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(91) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(92) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(96) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(98) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(98) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(101) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(102) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(106) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(110) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(110) : error 029: invalid expression, assumed zero
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(110) : error 004: function "OnPlayerPickUpPickup" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(113) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(116) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(119) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(122) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(127) : warning 225: unreachable code
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(127) : error 029: invalid expression, assumed zero
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(127) : error 004: function "PlayerToPoint" is not implemented
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(134) : error 017: undefined symbol "x"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(135) : error 017: undefined symbol "y"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(136) : error 017: undefined symbol "z"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(137) : error 017: undefined symbol "radi"
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(142) : warning 217: loose indentation
D:\GTA San Andreas Multiplayer\Alle Server\Server Crazy World\filterscripts\basejump.pwn(144) : error 030: compound statement not closed at the end of file (started at line 70)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
18 Errors.