05.11.2013, 06:28
Quote:
Okey thanks and now one more help.
Код:
CMD:annc(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] >= 3) { new msg[200]; if (sscanf(params, "s[200]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /annc [message/announce]"); if (IsPlayerConnected(playerid)) { GameTextForAll(msg, 5000, 5); SendCommandToAdmins(playerid,"/annc"); } } else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast admin level 3 to use this command"); return 1; } Код:
E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 017: undefined symbol "PlayerInfo" E:\this\18WoS\gamemodes\18WoS.pwn(1476) : warning 215: expression has no effect E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 001: expected token: ";", but found "]" E:\this\18WoS\gamemodes\18WoS.pwn(1476) : error 029: invalid expression, assumed zero E:\this\18WoS\gamemodes\18WoS.pwn(1476) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Код:
if(PlayerInfo[playerid][AdminLevel] >= 3)
Код:
if(pInfo[playerid][AdminLevel] >= 3)