Command problem.
#1

Hello SA-MP Community

Im trying to add a gangzones command, so you can see which zones are available and who are owning the zones at the moment
Код:
COMMAND:gangzones(playerid, params[])
{
	new msg[512], p;
	foreach(new i : GangZones)
	{
		p = GangZone[i][ZoneOwner];
		if(p == -1)
			format(msg, sizeof(msg), "%s{B7B7B7}%s (-)\n", msg, GangZone[i][ZoneName]);
		else
			format(msg, sizeof(msg), "%s{%s}%s (%s)\n", msg, Gang[p][GangColor], GangZone[i][ZoneName], Gang[p][GangName]);
	}
	ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Territory", msg, "Close", "");
	return 1;
}
I added this to my command.inc
After compiling i'm getting a errors
Код:
pawno\include\cnr/command.inc(1734) : error 017: undefined symbol "Iterator@GangZones"
pawno\include\cnr/command.inc(1734) : error 017: undefined symbol "Iterator@GangZones"
pawno\include\cnr/command.inc(1734) : error 017: undefined symbol "Iterator@GangZones"
pawno\include\cnr/command.inc(1734) : fatal error 107: too many error messages on one line
I did add below #endif this
Код:
new Iterator:GangZones<MAX_ZONES>;
But still getting errors,

LINE 1734 -
Код:
	foreach(new i : GangZones)
Reply


Messages In This Thread
Command problem. - by Frank901 - 31.08.2016, 16:18
Re: Command problem. - by oMa37 - 31.08.2016, 16:41
Re: Command problem. - by K0P - 31.08.2016, 16:47
Re: Command problem. - by IceBilizard - 31.08.2016, 17:05
Re: Command problem. - by AndySedeyn - 31.08.2016, 17:26
Re: Command problem. - by Frank901 - 31.08.2016, 18:21
Re: Command problem. - by GoldenLion - 31.08.2016, 20:01
Re: Command problem. - by Frank901 - 31.08.2016, 21:02
Re: Command problem. - by Marricio - 31.08.2016, 21:03
Re: Command problem. - by Frank901 - 31.08.2016, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)