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; }
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>;
foreach(new i : GangZones)
for (new i, j = sizeof(GangZones); i <= j; i++)
COMMAND:gangzones(playerid, params[]) { new msg[512], p; foreach(new i : GangZones<MAX_ZONES>) { 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; }
foreach(new i : GangZones)
foreach(GangZones, i)
Replace line
PHP код:
PHP код:
|
for(new i = 0; i < MAX_ZONES; i++)
error 017: undefined symbol "MAX_ZONES" error 017: undefined symbol "GangZone" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
#define DISALLOWED_ADDRESS "--" native gpci( playerid , const serial[] , maxlen ); #endif new Iterator:GangZones<MAX_ZONES>;