27.05.2015, 23:46
You need to separate the arrays with the qualifyers you want to exchange:
example:
so
you need to requifer it, so that the Arrays go Dimensional.
I hope I fixed your problem
example:
Код HTML:
CountVar[zoneid] --; && if(IsPlayerHelping[i]{ zoneid } == true)
you need to requifer it, so that the Arrays go Dimensional.
Код HTML:
Publib Arrays(playerid, zoneid, arrayid) { if(CountVar[zoneid] > 0) { CountVar[zoneid] --; SetPlayerProgressBarValue(playerid, ZBar, 25 - CountVar[zoneid]); UpdatePlayerProgressBar(playerid, ZBar); foreach (new i : Player) { if(IsPlayerHelping[i]{ zoneid } == true) { SlashInternationalValue(i, ZBar, 25 - CountVar[zoneid]); UpdatePlayerProgressBar(i, ZBar); CountVar[zoneid] --; } } } else if(CountVar[zoneid] == 0) { GangZoneStopFlashForAll(Zone[zoneid]); switch(pLang[playerid]) KillTimer(ZUpdateTimer[zoneid]); CountVar[zoneid] = 25; } else if(CountVar[zoneid] < 0) { ZONECaptured(playerid, zoneid); HidePlayerProgressBar(playerid, ZBar); KillTimer(ZUpdateTimer[zoneid]); CountVar[zoneid] = 25; } return 1; }