08.03.2016, 15:20
Try this:
Код:
CMD:checkall(playerid, params[]) { new string[1000]; new string1[50]; new string2[100]; new count=1; format(string1,sizeof(string1),"Online ( %i )", GetOnLinePlayers()); for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new Country1[30], City1[30], IP1[30]; GetPlayerCountry(playerid, Country1); GetPlayerCity(playerid, City1); GetPlayerIp(playerid,IP1,sizeof(IP1)); format(string2,sizeof(string2),"* %s ( ID %i ) [ IP: %s | State: %s | City: %s ]\n", GetPlayerName(i), i, IP1, Country1, City1); format(string, sizeof(string), "%s", string2); count++; } } ShowPlayerDialog(playerid, DIALOG_LOC, DIALOG_STYLE_MSGBOX , string1, string, "Cancel", ""); return 1; }