SANZONE_AREA Help!
#1

Quote:

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.

i dont know what the error..
maybe someone can help me?
Reply
#2

SANZONE_AREA isn't defined...

Hard for us to help if we don't see the code or at least the line with the error.
Reply
#3

pawn Код:
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;
}
Reply
#4

Код:
enum SAZONE_MAIN { //Betamaster
		SAZONE_NAME[28],
		Float:SAZONE_AREA[6]
};
put that on top
Reply
#5

Quote:
Originally Posted by eesh
Посмотреть сообщение
Код:
enum SAZONE_MAIN { //Betamaster
		SAZONE_NAME[28],
		Float:SAZONE_AREA[6]
};
put that on top
then , its more error :

Quote:

(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.

Reply
#6

Are you using this include?

https://sampforum.blast.hk/showthread.php?tid=27598
Reply
#7

Solved by my self.
-,-"
Reply
#8

Try to use it ...
Reply
#9

Solved, thank you ^_^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)