stock hook_GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy) {
static id = 0;
sZone[id] = {GangZoneCreate(minx, miny, maxx, maxy), minx, miny, maxx, maxy};
id ++;
}
#if defined _ALS_GangZoneCreate
#undef GangZoneCreate
#else
#define _ALS_GangZoneCreate
#endif
#define GangZoneCreate hook_GangZoneCreate
error 008: must be a constant expression; assumed zero;
stock hook_GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy) {
static id = 0;
sZone[id][ID] = GangZoneCreate(minx, miny, maxx, maxy);
sZone[id][MinX] = minx;
sZone[id][MinY] = miny;
sZone[id][MaxX] = maxx;
sZone[id][MaxY] = maxy;
id ++;
}
If you have a theory of why your code doesn't work, why don't you test the theory by trying different code in place of what may be failing? Surely that is going to teach you more than asking here?
|