28.01.2013, 15:49
Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(5081) : error 017: undefined symbol "name" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
CMD:admins(playerid, params[]) { new Count; new str[45], Admin[MAX_PLAYER_NAME]; for(new i = 0; i <MAX_PLAYERS; i++) { if (APlayerData[i][PlayerLevel] >= 1) // replace with ur variable { Count++; GetPlayerName(i, Admin, MAX_PLAYER_NAME); SendClientMessage(playerid, -1, "Current Administrators Online"); if(!IsOnAdminDuty[i]) format(str, sizeof(str), "Level%d-%s", name, i,APlayerData[i][PlayerLevel]); else if(IsOnAdminDuty[i]) format(str, sizeof(str), "Level %d - %s (On Duty)", APlayerData[i][PlayerLevel], Admin); SendClientMessage(playerid, -1, str); } } if(Count < 1) SendClientMessage(playerid, -1, "No Administrators Online!"); return 1; }