All ID's in a Textdraw
#1

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:

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


Messages In This Thread
All ID's in a Textdraw - by Robbin237 - 09.04.2009, 17:11
Re: All ID's in a Textdraw - by OmeRinG - 09.04.2009, 17:19
Re: All ID's in a Textdraw - by Robbin237 - 09.04.2009, 17:23
Re: All ID's in a Textdraw - by 90NINE - 09.04.2009, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)