SA-MP Forums Archive
Question about textdraws... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about textdraws... (/showthread.php?tid=485846)



Question about textdraws... - NeroX98 - 06.01.2014

Hi scripterz

I saw on the samp wiki that when you are setting an player textdraw you need [MAX_PLAYERS]. Eg. new PlayerText:Textdraw[MAX_PLAYERS]; So my question is do i need to add that ? I heard my friends who also are good scripters that they do not use [MAX_PLAYERS] because it is causing lag....


Re: Question about textdraws... - Eth - 06.01.2014

no you don't need [MAX_PLAYERS] you only need it when you make textdraws like kills and deaths and things like that


Re: Question about textdraws... - [SF]OutLawZ - 06.01.2014

An array is still needed for the variable as the ID of the textdraw may differ from player to player, as they may have more or less textdraws created than the other.


Re: Question about textdraws... - NeroX98 - 06.01.2014

Thanks for the answers :P I will proceed using MAX_PLAYERS... REP +1