Quote:
Originally Posted by DTV
You forgot a bracket at the beginning of the switch statement.
pawn Код:
if(IsPlayerConnected(i)) { new sendername[MAX_PLAYER_NAME]; switch(PlayerInfo[i][pAdminLevel]) { //Just add this. case 1: format(admtext, 64, "{10F441}Beta Tester"); case 2: format(admtext, 64, "{10F441}Moderator"); case 3: format(admtext, 64, "{33AA33}Administrator"); case 4: format(admtext, 64, "{FF0000}Senior Administrator"); case 1337: format(admtext, 64, "{FF0000}Head Administrator"); default: continue; }
|
This worked and removed all the errors, but when there's an Administrator in-game it doesn't actually show up when you type /admins - Is there something wrong somewhere else in this code or should it just be [AdminLevel]?
Thank's for the help.