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


Messages In This Thread
TextDraw time - by rubygta - 26.12.2011, 10:33
Re: TextDraw time - by SomebodyAndMe - 26.12.2011, 10:54
Re: TextDraw time - by rubygta - 26.12.2011, 10:57
Re: TextDraw time - by silvan - 26.12.2011, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)