E:\GM1\TestServer\ABC\DATA\Backup\TestDeler\check. pwn(990) : error 017: undefined symbol "SANZONE_AREA" E:\GM1\TestServer\ABC\DATA\Backup\TestDeler\check. pwn(990) : error 029: invalid expression, assumed zero E:\GM1\TestServer\ABC\DATA\Backup\TestDeler\check. pwn(990) : warning 215: expression has no effect E:\GM1\TestServer\ABC\DATA\Backup\TestDeler\check. pwn(990) : error 001: expected token: ";", but found "]" E:\GM1\TestServer\ABC\DATA\Backup\TestDeler\check. pwn(990) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
stock GetPlayer3DZone(playerid, zone[], len)
{
new Float:x33, Float:y33, Float:z33;
GetPlayerPos(playerid, x33, y33, z33);
for(new i = 0; i != sizeof(gSAZones); i++ )
{
if(x33 >= gSAZones[i][SANZONE_AREA][0] && x33 <= gSAZones[i][SANZONE_AREA][3] && y33 >= gSANZones[i][SAZONE_AREA][1] && y33 <= gSANZones[i][SAZONE_AREA][4] && z33 >= gSAZones[i][SANZONE_AREA][2] && z33 <= gSANZones[i][SAZONE_AREA][5]) // <<< This is the error.
{
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}
enum SAZONE_MAIN { //Betamaster SAZONE_NAME[28], Float:SAZONE_AREA[6] };
Код:
enum SAZONE_MAIN { //Betamaster SAZONE_NAME[28], Float:SAZONE_AREA[6] }; |
(21 : warning 228: length of initialler exceeds size of the enum field (21 : error 018: initialization data exceeds declared size (1002) : error 017: undefined symbol "SANZONE_AREA" (1002) : error 029: invalid expression, assumed zero (1002) : warning 215: expression has no effect (1002) : error 001: expected token: ";", but found "]" (1002) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |