SA-MP Forums Archive
textdraw overwriting another? - 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 overwriting another? (/showthread.php?tid=599709)



textdraw overwriting another? - xFuTuRe - 29.01.2016

For some reason my textdraw sets string in a another textdraw while it isn't even supposed to do that.

I've checked my code 200 times and it updates the string in the correct textdraw (player_td[playerid][info]) but it also updates (global_td[clock]) for whatever reason.

Anyone know what the cause of this may be?


Re: textdraw overwriting another? - Tamy - 29.01.2016

I had this problem, my problem was that I had set the Textdraw's color/size/background before actually creating it like TextDrawID = CreateTextDraw(etc..) so make sure you first CreateTextDraw then define it's components.


Re: textdraw overwriting another? - xFuTuRe - 29.01.2016

I actually just got it fixed, had to make the function public which fixed it.

Thanks anyhow


Re: textdraw overwriting another? - Pottus - 29.01.2016

Quote:
Originally Posted by xFuTuRe
Посмотреть сообщение
I actually just got it fixed, had to make the function public which fixed it.

Thanks anyhow
That wouldn't do anything unless you have timers calling that function.


Re: textdraw overwriting another? - xFuTuRe - 29.01.2016

Quote:
Originally Posted by Pottus
Посмотреть сообщение
That wouldn't do anything unless you have timers calling that function.
For whatever reason it did fix it, don't ask me why.