TextDraw time
#1

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.
Reply
#2

pawn Код:
new Text:timeShow;
Put that above "#include <stuff>" 's
Reply
#3

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
pawn Код:
new Text:timeShow;
Put that above "#include <stuff>" 's
Still compiles fine, though it doesn't work ingame :/ any ideas?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)