how to show all players in one and multi lines ?
#1

i want show like when u press /players its shows like
player1,playerb,player3
player4,playerc,player5

Код:
dcmd_players(playerid,params[])
{
	#pragma unused params

        new string[128];
		for(new i = 0; i < MAX_PLAYERS; i++)
		{

        if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            format(string, sizeof(string), "%s(%d)",PlayerName(i),i);

            SendClientMessage(playerid, 0xFFF84FFFF, string);
        	}
    }
	return 1;
}
but this code its shows like this

player1
playerb
player3
player4
playerc
player5
Reply


Messages In This Thread
how to show all players in one and multi lines ? - by omidi - 02.10.2013, 16:47
Re: how to show all players in one and multi lines ? - by Sliceofdeath - 02.10.2013, 16:50
Re: how to show all players in one and multi lines ? - by Konstantinos - 02.10.2013, 16:59

Forum Jump:


Users browsing this thread: 3 Guest(s)