Textdraw countdown problem
#1

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.)

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;
}
Reply


Messages In This Thread
Textdraw countdown problem - by BlackWolf120 - 10.12.2010, 17:07
Re: Textdraw countdown problem - by Lynn - 10.12.2010, 17:12
Re: Textdraw countdown problem - by BlackWolf120 - 10.12.2010, 17:14
Re: Textdraw countdown problem - by Lynn - 10.12.2010, 17:17
Re: Textdraw countdown problem - by BlackWolf120 - 10.12.2010, 17:29
Re: Textdraw countdown problem - by veyron - 10.12.2010, 19:20

Forum Jump:


Users browsing this thread: 2 Guest(s)