27.01.2013, 18:49
Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(2529) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\\pawno\include\PPC_PlayerCommands.inc(2533) : error 017: undefined symbol "IsOnAdminDuty" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
COMMAND:admins(playerid, params[]) { // Send the command to all admins so they can see it SendAdminText(playerid, "/admins", params); new str[128],name[MAX_PLAYER_NAME]; SendClientMessage(playerid, 0xFFFFFFAA, "Admins Online:"); for(new i; i<=MAX_PLAYERS; i++) for(new i = 0; i <MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsOnAdminDuty[i] == true) { new aname[24],astring[124]; GetPlayerName(playerid,aname,sizeof(aname)); format(astring,sizeof(astring),"%s (On duty)",aname); SendClientMessage(playerid,-1,astring); } if (APlayerData[i][PlayerLevel] >= 1) { GetPlayerName(i,name,sizeof(name)); format(str, sizeof(str), "%s[%d] Level:%d",name, i,APlayerData[i][PlayerLevel]); format(str, sizeof(str), "%s: %s%s %s %i\n", name, AdminLevelName[APlayerData[i][PlayerLevel]], i, APlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list SendClientMessage(playerid, 0xFFFFFFAA, str); } else return SendClientMessage(playerid,0xFF0000FF,"No Admin Online"); } } return 1; }