29.07.2015, 20:25
PHP код:
forward LoadZonesData(z, name[], value[]);
public LoadZonesData(z, name[], value[])
{
if(!strcmp(name, "MinX", true)) { ZoneData[z][Minx] = floatstr(value); }
if(!strcmp(name, "MinY", true)) { ZoneData[z][Miny] = floatstr(value); }
if(!strcmp(name, "MaxX", true)) { ZoneData[z][Maxx] = floatstr(value); }
if(!strcmp(name, "MaxY", true)) { ZoneData[z][Maxy] = floatstr(value); }
if(!strcmp(name, "ZoneID", true)) { ZoneData[z][ZoneID] = strval(value); }
if(!strcmp(name, "ZoneTeam", true)) { ZoneData[z][ZoneTeam] = strval(value); }
if(!strcmp(name, "ZoneColor", true)) { format(ZoneData[z][ZoneColor], sizeof(ZoneData[z][ZoneColor]),"%x", hexstrl(value)); }
}
PHP код:
if(!strcmp(name, "ZoneColor", true)) { format(ZoneData[z][ZoneColor], sizeof(ZoneData[z][ZoneColor]),"%x", hexstrl(value)); }
PHP код:
(250) : error 001: expected token: "]", but found "-identifier-"
(250) : warning 215: expression has no effect
(250) : error 001: expected token: ";", but found "]"
(250) : error 029: invalid expression, assumed zero
(250) : fatal error 107: too many error messages on one line