18.05.2013, 20:59
Hey guys, i am trying to make an event system but i need to make the command only works for level 2 and higher admins, but its giving me some errors please help me.
And the errors that i got is
pawn Код:
CMD:dm(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin]>2) return SendClientMessage(playerid, 0xD90005FF, "ERROR! You need to be an admin to use this command!!");
else
SetPlayerPos(playerid, 2689.9565, -1669.9923, 1.8278);
GameTextForPlayer(playerid, "~g~You are now on DM event!");
SendClientMessage(playerid, 0xfff000, "***Welcome to the DM event.");
SetPlayerSkin(playerid, 287);
SetPlayerHealth(playerid, 100);
return 1;
}
Код:
C:\Users\SuJan\Desktop\Trucking\filterscripts\ann.pwn(8) : error 029: invalid expression, assumed zero C:\Users\SuJan\Desktop\Trucking\filterscripts\ann.pwn(8) : warning 215: expression has no effect C:\Users\SuJan\Desktop\Trucking\filterscripts\ann.pwn(8) : error 001: expected token: ";", but found "]" C:\Users\SuJan\Desktop\Trucking\filterscripts\ann.pwn(8) : error 029: invalid expression, assumed zero C:\Users\SuJan\Desktop\Trucking\filterscripts\ann.pwn(8) : fatal error 107: too many error messages on one line