Cant get countdown to work!!
#1

hi,
i just cant figure out why this countdown in this texdraw is not working. The textdraw itself appears but the seconds 480 dont change. It stays 480.
Could someone pls tell me the error?

pawn Код:
new Text:selfdestructtext;
new countdownselfdeastruct = 480;

//OnGameModeInit
selfdestructtext = TextDrawCreate(504.000000, 102.000000, "Self Destruction in: ~r~480");
TextDrawBackgroundColor(selfdestructtext, 255);
TextDrawFont(selfdestructtext, 1);
TextDrawLetterSize(selfdestructtext, 0.270000, 1.000000);
TextDrawColor(selfdestructtext, -1);
TextDrawSetOutline(selfdestructtext, 1);
TextDrawSetProportional(selfdestructtext, 1);

//OnPlayerEnterCheckpoint
ADTimer = SetTimer("ActivatorDestruct",480000,false);//this timer destroys a created pickup after 8 mins.
ASDCDK = SetTimer("counterselfdestruct",990,false);//this texdraw countdown just doesnt count down!!

forward counterselfdestruct();
public counterselfdestruct()
{

if(countdownselfdeastruct > 0)
{
ASDCDK = SetTimer("counterselfdestruct",990,false);
new textformat[85];
format(textformat,sizeof textformat,"Self Destruction in: ~r~%d",countdownselfdeastruct);
TextDrawSetString(selfdestructtext,textformat);
TextDrawShowForAll(selfdestructtext);

countdown --;
}

return 1;
}

regards...
Reply


Messages In This Thread
Cant get countdown to work!! - by BlackWolf120 - 12.01.2011, 20:20
Re: Cant get countdown to work!! - by Cameltoe - 12.01.2011, 20:26
Re: Cant get countdown to work!! - by BlackWolf120 - 12.01.2011, 20:33
Re: Cant get countdown to work!! - by Zamaroht - 12.01.2011, 22:46
Re: Cant get countdown to work!! - by BlackWolf120 - 14.01.2011, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)