11.12.2014, 08:53
Let's say i have a tutorial textdraw who shows the steps.
If i create the Step Textdraw like this:
and there are 2 players in tutorial , the steps will gonna be fucked , and the numbers will be rode with the 2nd player.
So , i decided to put it like this STEPS[playerid] = TextDrawCreate... and i added it OnPlayerConnect.
But i have more than 40 globally textdraws and my bug is that if there are 4+ players on my server and 5th is connecting textdraw limit reached, and i destroy the global textdraws with TextDrawDestroy at OnPlayerDisconnect and the per/player ones with TextDrawHideForPlayer.
If i create the Step Textdraw like this:
pawn Код:
STEPS = TextDrawCreate... and more lines down
......
......
......
......
So , i decided to put it like this STEPS[playerid] = TextDrawCreate... and i added it OnPlayerConnect.
But i have more than 40 globally textdraws and my bug is that if there are 4+ players on my server and 5th is connecting textdraw limit reached, and i destroy the global textdraws with TextDrawDestroy at OnPlayerDisconnect and the per/player ones with TextDrawHideForPlayer.