Get Textdraw String? - 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: Get Textdraw String? (
/showthread.php?tid=248508)
Get Textdraw String? -
Ibanez - 14.04.2011
Hey all,
I was trying to think of a way to actually read a Textdraw's string, is there any simple way? Any help would be appreciated
E.G: I set Textdraw0's string to 'Hello', now i want to be able to get the string value of Textdraw0 so it would read 'Hello'
Re: Get Textdraw String? -
Conroy - 14.04.2011
Everytime you change the value, put the same value in a variable.
-Conroy
Re: Get Textdraw String? -
Ibanez - 14.04.2011
Quote:
Originally Posted by Conroy
Everytime you change the value, put the same value in a variable.
-Conroy
|
That's what I thought I would have to do, just seeing if there was an easier way around it, because I have a fair few Textdraws, thanks anyway!
Re: Get Textdraw String? -
Conroy - 14.04.2011
Ideally, your script shouldn't rely on textdraws to hold information; textdraws should rely on the script to hold the information.
Re: Get Textdraw String? -
Ibanez - 14.04.2011
I'm making a kind of 'News Box' using Textdraws, so I'm needing a way to store the string information, so the textdraw above it can read it and set it's string as the string from the Textdraw underneath it. It's to give it a kind of scrolling effect, would this be the right way to go about it?
Re: Get Textdraw String? -
Ibanez - 14.04.2011
So your saying the older version of YSI has functions to move data from 1 Textdraw to another Textdraw? Could you link me to the version your talking about if possible?