public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/burnsycar", true))
{
ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Car spawner", "Infernus\nTurismo\nPhoenix\nCheetah\nBanshee\nEuros\nBuffalo\nKart\nHotknife\nHustler\nComet\nStallion\nSunrise\nSandking", "Spawn", "Cancel");
return 1;
}
return 0;
}
if( Player[playerid][AdminLevel] >= 1 && Player[playerid][AdminDuty] > 0 )
C:\Users\Robert\Desktop\Grand Theft Auto San Andreas NEW\server\filterscripts\spawner.pwn(25) : error 017: undefined symbol "Player"
C:\Users\Robert\Desktop\Grand Theft Auto San Andreas NEW\server\filterscripts\spawner.pwn(25) : warning 215: expression has no effect
C:\Users\Robert\Desktop\Grand Theft Auto San Andreas NEW\server\filterscripts\spawner.pwn(25) : error 001: expected token: ";", but found "]"
C:\Users\Robert\Desktop\Grand Theft Auto San Andreas NEW\server\filterscripts\spawner.pwn(25) : error 029: invalid expression, assumed zero
C:\Users\Robert\Desktop\Grand Theft Auto San Andreas NEW\server\filterscripts\spawner.pwn(25) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
It will be whatever he named it...
He needs to check where the enum was made, if it is GF its likely to be PlayerInfo, although if its not he is likely to be different. |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/burnsycar", true))
{
if( Player[playerid][AdminLevel] > 0 && Player[playerid][AdminDuty] > 0 )//change for the proper variable.
{
ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Car spawner", "Infernus\nTurismo\nPhoenix\nCheetah\nBanshee\nEuros\nBuffalo\nKart\nHotknife\nHustler\nComet\nStallion\nSunrise\nSandking", "Spawn", "Cancel");
return 1;
}
else return 0;//or send a message "you're not admin F**k OFF! (or something along those lines)
}
return 0;
}
{
new id, reason[128], string[ 128 ];
if( sscanf( params, "us", id, reason) )
{
if( Player[playerid][AdminLevel] >= 1 && Player[playerid][AdminDuty] > 0 )
{
SendClientMessage( playerid, INFO_GREY, "SYNTAX: /kick <playerid/name> <reason>" );
}
}