24.02.2015, 15:21
Код:
CMD:a(playerid,params[]) { new string[128]; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { GetPlayerName(i,PlayerName2(i),MAX_PLAYER_NAME); if(PlayerInfo[i][Level] == 1) { format(string,sizeof(string), "{FF9900}[BasicVip]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 2) { format(string,sizeof(string), "{FF9900}[Vip]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 3) { format(string,sizeof(string), "{FF9900}[MasterVip]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 4) { format(string,sizeof(string), "{7CFC00}[Admin]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 5) { format(string,sizeof(string), "{1E90FF}[MasterAdmin]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 6) { format(string,sizeof(string), "{00FFFF}[ProAdmin]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 7) { format(string,sizeof(string), "[SuperAdmin]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } else if(PlayerInfo[i][Level] == 8) { format(string,sizeof(string), "{FF0000}[DeltaAdmin]{09F911} %s (Level: %d) : %s",PlayerName2(i),PlayerInfo[i][Level], params ); } MessageToAdmins(NICE_PINK,string); } } return 1; }
Can someone fix the problem chat above?