CMD:admins(playerid){ new sLevel[][]= { \"{FFFFFF} RCON Admin\", \"{375FFF} Kezdõ admin\", \"{CDF917} Próbaidõs Moderátor\", \"{ADFF2F} Moderátor\", \"{33FF33} Fõadmin\", \"{FF0000} Szerver Tulaj\" }; new iName[MAX_PLAYER_NAME], iMax = 1, iStr[128]; SendClientMessage(playerid,GREEN, \"[___Elérhetõ Adminok____]\"); for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(i)) { GetPlayerName(i,iName,sizeof(iName)); format(iStr,sizeof(iStr),\"%i. | %s | Id: %i | Szint: %i - %s\",iMax,iName,i,PlayerInfo[playerid][pAdminLevel],sLevel[PlayerInfo[playerid][pAdminLevel]]); SendClientMessage(playerid,LIGHTBLUE,iStr); iMax++; } } if(iMax < 2) { SendClientMessage(playerid,RED,\"Nincs jelenleg admin a szerveren!\"); SendClientMessage(playerid,GREEN, \" _______________________________________\"); } return 1;}
CMD:admins(playerid){ new sLevel[][]= { \"{FFFFFF} RCON Admin\", \"{375FFF} Kezdõ admin\", \"{CDF917} Próbaidõs Moderátor\", \"{ADFF2F} Moderátor\", \"{33FF33} Fõadmin\", \"{FF0000} Szerver Tulaj\" }; new iName[MAX_PLAYER_NAME], iMax = 1, iStr[128]; SendClientMessage(playerid,GREEN, \"[___Elérhetõ Adminok____]\"); for(new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i)) { if(PlayerInfo[pAdminLevel] >= 1 || IsPlayerAdmin(i)) { GetPlayerName(i,iName,sizeof(iName)); format(iStr,sizeof(iStr),\"%i. | %s | Id: %i | Szint: %i - %s\",iMax,iName,i,PlayerInfo[pAdminLevel],sLevel[PlayerInfo[pAdminLevel]]); SendClientMessage(playerid,LIGHTBLUE,iStr); iMax++; } } if(iMax < 2) { SendClientMessage(playerid,RED,\"Nincs jelenleg admin a szerveren!\"); SendClientMessage(playerid,GREEN, \" _______________________________________\"); } return 1;}
F:\\samp szeró0.3d\\filterscripts\\Admin.pwn(370) : error 033: array must be indexed (variable \"PlayerInfo\")F:\\samp szeró0.3d\\filterscripts\\Admin.pwn(373) : error 033: array must be indexed (variable \"PlayerInfo\")Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors
370: if(PlayerInfo[pAdminLevel] > 1 )373: format(iStr,sizeof(iStr),\"%i. | %s | Id: %i | Szint: %i - %s\",iMax,iName,i,PlayerInfo[pAdminLevel],sLevel[PlayerInfo[pAdminLevel]]);