10.12.2010, 17:07
hi,
could someone explain to me why the first code is workin and the second not?
Only the texdraw text has been changed.
But still only the first code is working.
(this is a textdraw countdown: that one that is not working => the seconds after the writing are not changing.)
could someone explain to me why the first code is workin and the second not?
Only the texdraw text has been changed.
But still only the first code is working.
(this is a textdraw countdown: that one that is not working => the seconds after the writing are not changing.)
pawn Код:
public countTimer() //working
{
new textformat[32];
format(textformat,sizeof textformat,"Countdown : %d",countdown);
TextDrawSetString(textdraw,textformat);
if(--countdown == 0){
KillTimer(counttimer);
GameTextForPlayer(...);
countdown = 0;
}
return 1;
}
public countTimer() //not working
{
new textformat[32];
format(textformat,sizeof textformat,"~l~!! ~r~Detonating: %d ~l~!!",countdown);
TextDrawSetString(textdraw,textformat);
if(--countdown == 0){
KillTimer(counttimer);
GameTextForPlayer(...);
countdown = 0;
}
return 1;
}