11.12.2009, 14:20
Can anyone look at my /admins command. This will show all admins online.
and I got error:
Error is on line:
Код:
if(strcmp(cmd, "/admins", true) == 0) { for(new i=0, m=GetMaxPlayers; i<m; i++) { if((PlayerInfo[i][AdminLevel] > 0) && !IsPlayerConnected(i)) SendClientMessage(playerid, 0xFFA500FF, "Server: There is no admins oline!"); if((PlayerInfo[i][AdminLevel] > 0) && IsPlayerConnected(i)) { new str[128]; format(str, 128, "%s(%d) [Level: %d]", Name(i), i, PlayerInfo[i][AdminLevel]); SendClientMessage(playerid, 0xFFA500FF, "Server: Currently online admins:"); SendClientMessage(playerid, 0xFFA500FF, str); } } } return 0; }
Quote:
I:\Mini-Quests\filterscripts\Admin2.pwn(30 : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Quote:
for(new i=0, m=GetMaxPlayers; i<m; i++) |