09.04.2009, 17:11
Hi guys, im trying to make a command that displays a textdraw with all ID's online in it.
Now my problem is , how can i do this?
Im trying it with TextDrawSetString, and a loop. Could somebody help me and correct this code to get all ID's from who are online and put them in the textdraw ?
This is my code:
Thnx!
Now my problem is , how can i do this?
Im trying it with TextDrawSetString, and a loop. Could somebody help me and correct this code to get all ID's from who are online and put them in the textdraw ?
This is my code:
pawn Код:
dcmd_info(playerid, params[])
{
Textdraw1 = TextDrawCreate(475.000000, 291.000000, " ~n~");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
TextDrawSetString(Textdraw1, TextDraw1 & i);
}
}
return 1;
}