Question about multi-dimensional arrays
#4

You need to separate the arrays with the qualifyers you want to exchange:

example:

Код HTML:
CountVar[zoneid] --; && 	if(IsPlayerHelping[i]{ zoneid } == true)
so

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;
}
I hope I fixed your problem
Reply


Messages In This Thread
Question about multi-dimensional arrays - by Finn707 - 27.05.2015, 21:21
Re: Question about multi-dimensional arrays - by Konstantinos - 27.05.2015, 21:28
Re: Question about multi-dimensional arrays - by Finn707 - 27.05.2015, 21:34
Re: Question about multi-dimensional arrays - by Charalambos26 - 27.05.2015, 23:46
Re: Question about multi-dimensional arrays - by Konstantinos - 28.05.2015, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)