Quote:
Originally Posted by JamesH
pawn Code:
CMD:admins(playerid) { SendClientMessage(playerid, color, "List of online admins."); for(new i=0;i<MAX_PLAYERS;i++) { if((pInfo[i][pAdminlevel] => 1) { { new temp[99]; format(temp, sizeof(temp),"ID : %s | Admin Level : %s",i, pInfo[i][pAdminLevel]); SendClientMessage(playerid, color, temp); } } } return 1; }
About getting the player name I suggest you to make a stock intead using GetPlayerName in every command.
And once again make sure if the variable in yourscript file is not 0.
|
Since when was a playerid & pAdmin a string? It's an integer.