error 004: function "LoadZones" is not implemented
#1

I get error error 004: function "LoadZones" is not implemented.
My lines:
Код HTML:
forward LoadZones();
LoadZones();

    for(new i=0; i < sizeof(ZoneInfo); i++)
	{
      Zones[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
	}

	for(new i=0; i < sizeof(ZoneInfo); i++)
	{
      Bea[i] = GangZoneCreateEx(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY], i+1, 1.0);
	}
Код HTML:
public LoadZones()
{
    new arrCoords[6][64];
	new strFromFile2[256];
	new File: file = fopen("configs/gzones.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < sizeof(ZoneInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, '|');
			ZoneInfo[idx][zMinX] = floatstr(arrCoords[0]);
			ZoneInfo[idx][zMinY] = floatstr(arrCoords[1]);
			ZoneInfo[idx][zMaxX] = floatstr(arrCoords[2]);
			ZoneInfo[idx][zMaxY] = floatstr(arrCoords[3]);
			ZoneInfo[idx][zTeam] = strval(arrCoords[4]);
			ZoneInfo[idx][zHours] = strval(arrCoords[5]);
			idx++;
		}
		fclose(file);
		printf("%d Zones loaded.",idx);
	}
	return 1;
}
Reply
#2

Did you
pawn Код:
#define LoadZones
?
Reply
#3

no , i defined it now and i get
Код HTML:
F:x(1596) : error 029: invalid expression, assumed zero
F:x(1596) : error 001: expected token: ")", but found ";"
F:x(1596 -- 1598) : warning 215: expression has no effect
F:x(1598) : error 001: expected token: ";", but found "for"
F:x(1598) : fatal error 107: too many error messages on one line
Lines:
Код HTML:
	LoadZones();
    for(new i=0; i < sizeof(ZoneInfo); i++)
	{
      Zones[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
	}
Reply
#4

Show a little more code with like
pawn Код:
LoadZones(); //Error line 1598
Reply
#5

All the codes ar up at the top of the topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)