Do we have to call PlayerTextDrawDestroy here ?
#1

I'm creating player textdraws when a player connects at OnPlayerConnect.
I want to know do I have to destroy the textdraw when player disconnects at OnPlayerDisconnect or sa-mp server takes care about this automatically ?
Reply
#2

you need to do PlayerTextDrawDestroy at OnPlayerDisconnect
Reply
#3

If it's not global, I suggest you destroy it, because the current server version doesn't support more than 2000 textdraws.
The player doesn't see the textdraw on disconnect, but the sever keeps it there if you don't destroy it.
Reply
#4

No you don't need to destroy them, PlayerTextDraws and PVars are automatically deleted if the player disconnects
The sever supports 2048 global textdraws and additionally 256 PlayerTextDraws per Player
Reply
#5

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
No you don't need to destroy them, PlayerTextDraws and PVars are automatically deleted if the player disconnects
The sever supports 2048 global textdraws and additionally 256 PlayerTextDraws per Player
I also agree with you. However just to make sure do you have any source, wiki, etc for this ?
Reply
#6

These information can all be found on the wiki

https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw (last note)
And the limits
https://sampwiki.blast.hk/wiki/Limits
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)