31.08.2016, 16:18
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
I added this to my command.inc
After compiling i'm getting a errors
I did add below #endif this
But still getting errors,
LINE 1734 -
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; }
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
Код:
new Iterator:GangZones<MAX_ZONES>;
LINE 1734 -
Код:
foreach(new i : GangZones)