Looping through all player textdraws
#1

As title says, I want to loop through all player textdraws (to set alpha - fading effect), but I have little problem, I have all PlayerTextdraws defined like this:

pawn Код:
static
    PlayerText:Textdraw0[MAX_PLAYERS],
    PlayerText:Textdraw1[MAX_PLAYERS],
    PlayerText:Textdraw2[MAX_PLAYERS,
    // And so on till Textdraw26 ...

//And then I'm initializing these in on player login
Textdraw0[playerid] = CreatePlayerTextdraw( ... );
// ...'

//And OnPlayerDisconnect I'm destroying these player textdraws
DestroyPlayerTextdraw(playerid, Textdraw0[playerid]);
// ...
So I probably need to convert these to array, but I'm not sure how to do it so I'm asking here, so I won't mess up something. Thanks.
Reply


Messages In This Thread
Looping through all player textdraws - by Riwerry - 29.12.2015, 10:07
Re: Looping through all player textdraws - by SecretBoss - 29.12.2015, 10:14
Re: Looping through all player textdraws - by Tamy - 29.12.2015, 10:15
Re: Looping through all player textdraws - by Riwerry - 29.12.2015, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)