Posts: 67
Threads: 11
Joined: Oct 2013
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 ?
Posts: 37
Threads: 10
Joined: Mar 2014
Reputation:
0
you need to do PlayerTextDrawDestroy at OnPlayerDisconnect
Posts: 3,002
Threads: 86
Joined: Jul 2010
Reputation:
0
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.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
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
Posts: 67
Threads: 11
Joined: Oct 2013
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 ?