SA-MP Forums Archive
TextDraw Won't Show Up - 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 Won't Show Up (/showthread.php?tid=528356)



TextDraw Won't Show Up - reiss82 - 27.07.2014

I made my own Derby script and I've been trying to add a TextDraw to show the time left but for some reason it won't show up. Can anyone see a problem with my code?

new Text:derbyTimer;
derbyTimer = TextDrawCreate(240.0, 580.0, "00:00");
new tmptime = gettime();
format(timestr, sizeof(timestr), "%d seconds", tmptime);
TextDrawSetString(derbyTimer, timestr);
TextDrawShowForPlayer(players[i], derbyTimer);

That gets used for all of the players in the derby, which is the players array. I'd really appreciate some help with this because I can't see the problem.