[ayuda]Problema progressbar
#1

Hola a todos tengo un server de zonas conquistables con progressbar y el problema que tengo es que entro a capturar y la progressbar se va llenando cuando salgo de la zona y vuelvo a entrar sigue por donde la deje osea no se reinicia el progressbar. gracias
Reply
#2

PHP код:
if (IsPlayerInCheckpoint(playerid)) return DestroyProgressBar(nombrevar[playerid]);
{
//

Creo que asн.

PHP код:
 if (IsPlayerInCheckpoint(playerid)) return SetProgressBarValue(nombre0)
{
//

O asi
Reply
#3

Quote:
Originally Posted by xSeveNx
Посмотреть сообщение
PHP код:
if (IsPlayerInCheckpoint(playerid)) return DestroyProgressBar(nombrevar[playerid]);
{
//

Creo que asн.

PHP код:
 if (IsPlayerInCheckpoint(playerid)) return SetProgressBarValue(nombre0)
{
//

O asi
gracias por contestar bro

No se si el problema sea de aca
forward CountDown();
public CountDown()
{
foreach(Player, playerid)
{
if(IsPlayerInDynamicCP(playerid, CP[SNAKE]) && UnderAttack[SNAKE] == 1 && IsPlayerCapturing[playerid][SNAKE] == 1)
{
new check = (CProgress[playerid][SNAKE] *100)/25;
CProgress[playerid][SNAKE]++;
CountVar[playerid][SNAKE]--;
new str1[124];
TextDrawShowForPlayer(playerid, CountText[playerid]);
format(str1, sizeof(str1),"~r~%d ~y~Left To Capture.", CountVar[playerid][SNAKE]);
TextDrawSetString(CountText[playerid], str1);
SetProgressBarValue(captureprogress[playerid],0);
switch(check)
{
case 0..20: SetProgressBarColor(captureprogress[playerid],0x26BAF4FF); //blue
case 21..40: SetProgressBarColor(captureprogress[playerid],0x3FE899FF); //green
case 41..60: SetProgressBarColor(captureprogress[playerid],0x93ED48FF); //green-yellow
case 61..80: SetProgressBarColor(captureprogress[playerid],0xF2EF3EFF); //yellow
case 81..100: SetProgressBarColor(captureprogress[playerid],0xFF0000FF); //red
}
UpdateProgressBar(captureprogress[playerid],playerid);
ShowProgressBarForPlayer(playerid,captureprogress[playerid]);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)