Bekomme errors wen ich es Complieren will
Hier die error´s:
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(10) : error 017: undefined symbol "cmdtext"
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(12) : error 017: undefined symbol "playerid"
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(12) : error 017: undefined symbol "playerid"
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(14) : error 017: undefined symbol "playerid"
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(15) : error 017: undefined symbol "playerid"
D:\Pawn\pawno\maps\Scripts\Admin-car-spawn.pwn(16) : error 017: undefined symbol "playerid"
Hier das script:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
if (strcmp("/landstalker", cmdtext, true) == 0)
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_RED,"Nur für Admins!");
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
SendClientMessage(playerid, COLOR_RED,"Auto Erfolgreich Erstellt!!!");
new hotring = CreateVehicle(400,x,y,z,a,-1,-1,-1);
PutPlayerInVehicle(playerid, hotring, 0);
return 1;
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
was ist daran falsch??