23.07.2011, 13:12
Here is Code..
And Here Are Errors..
Please help, i am using zcmd.
Thanks
Код:
CMD:afklist(playerid, params[]) { new string[128], count, pName[24]; SendClientMessage(playerid,0xFFFF00AA, "**-:Online Admins:-**"); for(new i ; i < MAX_PLAYERS; i++) { if(Info[i][Level]) GetPlayerName(i,pName,24); else continue; count++; switch(Info[i][Level]) { case 1:format(string, 60, "Name: %s | Level: 1 [Trainee Moderator]",pName); case 2:format(string, 60, "Name: %s | Level: 2 [Moderator]",pName); case 3:format(string, 60, "Name: %s | Level: 3 [Admin]",pName); case 4:format(string, 60, "Name: %s | Level: 4 [Full Admin]",pName); case 5:format(string, 60, "Name: %s | Level: 5 [Lead Admin]",pName); } if(IsPlayerAdmin(i)) format(string, 60, "Name: %s | Level: %d [MAIN SERVER ADMIN/OWNER]",pName,Info[playerid][Level]); SendClientMessage(playerid,white,string); } SendClientMessage(playerid,lightblue,"------------------------"); if(count) format(string, 128,"Total Online: %d",count); else return SendClientMessage(playerid,red,"There are currently no admins online."),1; SendClientMessage(playerid,lightblue,string); return 1; }
Код:
D:\SAATD\gamemodes\mata2.pwn(10844) : error 017: undefined symbol "Info" D:\SAATD\gamemodes\mata2.pwn(10844) : warning 215: expression has no effect D:\SAATD\gamemodes\mata2.pwn(10844) : error 001: expected token: ";", but found "]" D:\SAATD\gamemodes\mata2.pwn(10844) : error 029: invalid expression, assumed zero D:\SAATD\gamemodes\mata2.pwn(10844) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Thanks