06.09.2009, 13:57
Hi,
I have a problem with this it gets me this error:
on the line
and i dont know how to fix this
Please help me...
I have a problem with this it gets me this error:
Код:
error 008: must be a constant expression; assumed zero
Код:
GetRegionCheck(Float:posx[iidd],Float:posy[iidd],Float:posz[iidd])
Please help me...
Код:
new iidd; new Float:posx[MAX_PLAYERS]; new Float:posy[MAX_PLAYERS]; new Float:posz[MAX_PLAYERS]; GetRegionCheck(Float:posx[iidd],Float:posy[iidd],Float:posz[iidd]) { new zone[256]; for (new r=0; r < MAX_REGIONS; r++) { if(posx[iidd]>=gRegionCoords[r][0] && posx[iidd]<=gRegionCoords[r][3] && posy[iidd]>=gRegionCoords[r][1] && posy[iidd]<=gRegionCoords[r][4] && posz[iidd]>=gRegionCoords[r][2] && posz[iidd] < gRegionCoords[r][5]) { format(zone, sizeof(zone), "%s", gRegionNames[r]); break; } } return zone; }