SA-MP Forums Archive
Mounting a variable on a textdraw - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mounting a variable on a textdraw (/showthread.php?tid=275263)



Mounting a variable on a textdraw - SpankMe2 - 09.08.2011

Hi could you guys tell me how i put a varible online players into a textdraw i have the varible i just need the lines that place the value in the textdraw


Re: Mounting a variable on a textdraw - dowster - 09.08.2011

format could be used, then update the textdraw every minute or so


Re: Mounting a variable on a textdraw - SpankMe2 - 09.08.2011

ive made it so onplayer connect the text draw gets remade and on disconnect the same thing


AW: Mounting a variable on a textdraw - Nero_3D - 09.08.2011

use TextDrawSetString instead of recreating


Re: Mounting a variable on a textdraw - DRIFT_HUNTER - 09.08.2011

pawn Код:
new textdrawstring[56];//You dont need long string cos its just a bit of text and players count
format(textdrawstring, 56,"Online players: %d", your_variable);