[Help]Why the progressbar does not restart?
#1

Hi all i have a problem progressbar does not restart
check video

https://www.youtube.com/watch?v=Ni217yuXDPE

thanks
Reply
#2

Whenever you stop the flashing the zone (GangZoneStopFlashForAll), use SetProgressBarValue and set it to 0.0.

And if you are using a var for setting the progress bar's value, set it as well to 30 or the number of seconds you require (only if you are using an inverse time scheme).
Reply
#3

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Whenever you stop the flashing the zone (GangZoneStopFlashForAll), use SetProgressBarValue and set it to 0.0.

And if you are using a var for setting the progress bar's value, set it as well to 30 or the number of seconds you require (only if you are using an inverse time scheme).
thanks for answering, but I already did not work
Reply
#4

You didn't even post any code at all how are we to even begin to figure out the problem?
Reply
#5

Quote:
Originally Posted by Pottus
Посмотреть сообщение
You didn't even post any code at all how are we to even begin to figure out the problem?
stock LeavingSnakeFarm(playerid)
{
Captured[playerid][SNAKE] = 1;
UnderAttack[SNAKE] = 0;
KillTimer(timer[playerid][SNAKE]);
TextDrawHideForPlayer(playerid, CountText[playerid]);
HideProgressBarForPlayer(playerid,captureprogress[playerid]);
CountVar[playerid][SNAKE] = 25;
GangZoneStopFlashForAll(Zone[SNAKE]);
SetProgressBarValue(captureprogress[playerid],0);
for(new i = 0; i < MAX_PLAYERS; i++)
{
IsPlayerCapturing[i][SNAKE] = 0;
}
SendClientMessage(playerid, red,"*You have been failed to capture this zone!");

return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)