SA-MP Forums Archive
TextDraw per player - 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: TextDraw per player (/showthread.php?tid=460249)



TextDraw per player - avivelkayam - 27.08.2013

hello

i want to create an weapon shop with clickable textdraw but its taking me too much arrays
i mean like in every piece of td i need to create another per player array and its taking too much PLACE

somenoe can advice me how to do in the best way?
(i know how to script it, the problem is that too much varaibles gives lags no?)

thanks for all helpers


Re: TextDraw per player - avivelkayam - 28.08.2013

BUMP! why nobody help me?


Re: TextDraw per player - Lorrden - 28.08.2013

Use enum?


Re: TextDraw per player - avivelkayam - 28.08.2013

look, i asked if there is another way to create player textdraws with takeing alot of variables
but if il use enum it will be the same as variable..

please tell me if there is another way to use player textdraws and dont use alot of variables..


Re: TextDraw per player - SilentSoul - 28.08.2013

Try this out work awesome for me , https://sampforum.blast.hk/showthread.php?tid=387597
You can in game create textdraw clickable and save / add to your gamemode , hope i helped.


Re: TextDraw per player - Misiur - 28.08.2013

Reuse textdraws. The shop consists of weapons right? So create textdraw for each weapon, but do not destroy the textdraw after you hide it from someone. Add some custom action after textdraw click, but still - you don't have to create identical textdraw for every player, just show it or hide it accordingly