02.05.2014, 18:16
I have do this:
This is an function for a timer that will repeat each 1000ms, for the update of textdraw, but the function is repeat only one time, so my textdraw still 1000.
some one can help me?
thanks.
pawn Код:
forward jailcountdown(playerid);
public jailcountdown(playerid)
{
new time = 1000;
new times[15];
valstr(times,time);
if(times == jTime)
{
KillTimer(timerjailcd);
TextDrawHideForPlayer(playerid,intestajail);
TextDrawHideForPlayer(playerid,contojail);
return 1;
}
TextDrawSetString(contojail,times);
times[14] = valstr(times,time+1000);
return 1;
}
some one can help me?
thanks.