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


Messages In This Thread
error 004: function "LoadZones" is not implemented - by buburuzu19 - 30.08.2014, 07:18
Re: error 004: function "LoadZones" is not implemented - by Rudy_ - 30.08.2014, 07:30
Re: error 004: function "LoadZones" is not implemented - by buburuzu19 - 30.08.2014, 07:35
Re: error 004: function "LoadZones" is not implemented - by Rudy_ - 30.08.2014, 07:42
Re: error 004: function "LoadZones" is not implemented - by buburuzu19 - 30.08.2014, 08:03

Forum Jump:


Users browsing this thread: 2 Guest(s)