07.07.2012, 06:34
Quote:
Okay, so im making a /countdown command, and im probably making it harder than it really should be. But im trying to convert the integer into a string or vise versa so i can use TextDrawSetString. But even when i strval i get an error on the TextDrawSetString line.
pawn Код:
|
Use this instead
pawn Код:
CMD:countdown(playerid,params[])
{
new string[4];
new countdown = 4;
if(!IsAdmin(playerid, 1)) return ErrorMsg(playerid);
if(sscanf(params, "i", countdown)) return Usage(playerid, "/countdown [time]");
format(string,sizeof(string),"%d",countdown);
TextDrawSetString(AnnText, string);
TextDrawShowForAll(AnnText);
CountTimer = SetTimer("CountDown",1000,true);
return 1;
}