Help with include.
#9

You have to set the timer on repeat on a smaller relevant interval.

And a new variable to count the number of times the timer is being called, as to record the countdown.
pawn Код:
// new variable
new HTimerCount;

// when declaring timer
HTimerCount = 1;
HTimer[WANG] = SetTimerEx("wangbomb",1000,true,"i",playerid);
SO your "wangbomb" have to be modified with a count check:
(when to destroy timer and stuff)
pawn Код:
if (HTimerCount == 12) //12 seconds
{
}
How to update progress bar:
pawn Код:
else
{
}
And you also need to increase the variable count "HTimerCount": (this goes outside of the if-else)
pawn Код:
HTimerCount++;
Reply


Messages In This Thread
Help with include. - by DeeadPool - 23.08.2016, 17:23
Re: Help with include. - by Tass007 - 24.08.2016, 00:42
Re: Help with include. - by Kwarde - 24.08.2016, 01:37
Re: Help with include. - by DeeadPool - 24.08.2016, 04:04
Re: Help with include. - by SickAttack - 24.08.2016, 06:28
Re: Help with include. - by DeeadPool - 24.08.2016, 06:51
Re: Help with include. - by SickAttack - 24.08.2016, 06:58
Re: Help with include. - by DeeadPool - 24.08.2016, 07:56
Re: Help with include. - by Gammix - 24.08.2016, 12:43
Re: Help with include. - by DeeadPool - 24.08.2016, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)