31.10.2012, 14:07
this is the script
i got an error
the error
Please help
Код:
CMD:startevent(playerid, params[]) { if(AccInfo[playerid][Level] >= 3) { GameTextForPlayer(playerid,"~b~An event has Spawned use /joinevent!",5000,4); if(Events == 1) return SendClientMessage(playerid,-1,"There is already an event created"); GetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]); Events = 1; } else if(AccInfo[playerid][Level] >= 0) return SendClientMessage(playerid, -1, " you are not authorized to use that command!"); return 1; } CMD:joinevent(playerid, params[]) { if(Events == 0) return SendClientMessage(playerid, , "An Event has not Started."); SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]); return 1; } CMD:lockevent(playerid, params[]) { if(AccInfo[playerid][Level] >= 3) { GameTextForPlayer(playerid,"~r~The Event is Over!",5000,4); if(Events == 0) return SendClientMessage(playerid, Red, "No event has been created"); Events = 0; } else if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,red,"ERROR: Only for admins"); return 1; }
Код:
CMD:joinevent(playerid, params[]) { if(Events == 0) return SendClientMessage(playerid, , "An Event has not Started."); SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]); return 1; }
Код:
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 029: invalid expression, assumed zero C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : warning 215: expression has no effect C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 001: expected token: ";", but found ")" C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 029: invalid expression, assumed zero C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
new Events; new Float:Event[3];