TextDraw time - 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 time (
/showthread.php?tid=306344)
TextDraw time -
rubygta - 26.12.2011
Hey, there. After a lot of failures for some months ago, I've decided to try again with pawno, and it's been going really well, actually. I'm now trying to make a "/displaytime" in a textdraw, but I found out it wasn't really easy. Compiles fine, but doesn't show up, I guess I've probably screwed up something. So, if anyone'd be so kind to help me out, that'd be great!
pawn Код:
CMD:displaytime(playerid, params[])
{
TextDrawShowForPlayer(playerid, Text:timeShow);
return 1;
}
//^The command
new H, M, S, TimeString[128];
gettime(H, M, S);
format(TimeString, 128, "%d:%d:%d", H, M, S);
timeShow = TextDrawCreate(240.0,580.0,TimeString);
//^OnGameModeInit
new Text:timeShow;
^Where I put the "new" thingys, dunno what that's called.
Thank you, in advance.
Re: TextDraw time -
SomebodyAndMe - 26.12.2011
Put that above "#include <stuff>" 's
Re: TextDraw time -
rubygta - 26.12.2011
Quote:
Originally Posted by SomebodyAndMe
Put that above "#include <stuff>" 's
|
Still compiles fine, though it doesn't work ingame :/ any ideas?
Re: TextDraw time -
silvan - 26.12.2011
sorry to break it to ya, to make a text draw you need couple more of functions. try this filterscript see if it help you.
http://forum.sa-mp.com/showthread.ph...light=textdraw
This filterscript helped me alot as well. Thanks Zamaroht.