29.12.2015, 10:07
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:
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.
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]);
// ...