05.05.2013, 17:02
Ah I resolved all almost all errors now, but I get some different error (on 1 line only)
Error line:
Код:
CMD:admins(playerid,params[]) { #pragma unused params new string[150],count = 0,AdminPos[30]; new GetPName[MAX_PLAYER_NAME]; for(new i = 0;i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdminLevel] >= 1) { if(PlayerInfo[i][pAdminLevel] == 1) AdminPos="Moderator"; else if(PlayerInfo[i][pAdminLevel] == 2) AdminPos="Administrator"; else if(PlayerInfo[i][pAdminLevel] == 3) AdminPos="Head Administrator"; else if(PlayerInfo[i][pAdminLevel] == 4) AdminPos="Owner"; format(string,sizeof(string),"%s %s(ID:%d) %s \n",string,GetPName(i),i,AdminPos); ShowPlayerDialog(playerid,Adminsdialog,0,"Admins Online",string,"OK",""); count++; } } else if(count == 0) { ShowPlayerDialog(playerid,Adminsdialog,0,"Admins Online","No Admins Online!","OK",""); } } return 1; }
Код:
format(string,sizeof(string),"%s %s(ID:%d) %s \n",string,GetPName(i),i,AdminPos);