Players in dialog (format)
#2

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;
}
Reply


Messages In This Thread
Players in dialog (format) - by FinStar - 08.03.2016, 14:54
Re: Players in dialog (format) - by K0P - 08.03.2016, 15:20
Re: Players in dialog (format) - by FinStar - 08.03.2016, 15:25
Re: Players in dialog (format) - by TheHonnor - 08.03.2016, 15:30
Re: Players in dialog (format) - by FinStar - 08.03.2016, 15:36
Re: Players in dialog (format) - by K0P - 08.03.2016, 15:39
Re: Players in dialog (format) - by ikey07 - 08.03.2016, 15:40
Re: Players in dialog (format) - by FinStar - 08.03.2016, 15:50
Re: Players in dialog (format) - by K0P - 08.03.2016, 15:51
Re: Players in dialog (format) - by TheHonnor - 08.03.2016, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)