26.12.2011, 10:33
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!
Thank you, in advance.
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.