SA-MP Forums Archive
usebox size problem - 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: usebox size problem (/showthread.php?tid=429205)



usebox size problem - dash5487 - 08.04.2013

hello ladies and gentleman
my problem is when i use command to send the value to textdraw create it wont work (not showing)
but if i directly put values in PositionX and Y(in script file) it will show
but i wanted to give textdraw value in game how to do that ?
so i have this on ttop

Код:
new Float:PositionX,Float:PositionY
in onplayerconnect
Код:
Textdraw0[playerid] = TextDrawCreate(PositionX,PositionY, "usebox");
and in a command /show

Код:
			PositionX=28.874847;
			PositionY=114.666633;



Re: usebox size problem - Vince - 08.04.2013

You need to hide and re-show the textdraw for changes to take effect. The only exception to this rule is TextDrawSetString.