Keep Getting this error +Rep
#1

Here is the error:
Код:
C:\Users\HP\Desktop\Script\gamemodes\RP.pwn(5734) : error 017: undefined symbol "SANZONE_AREA"
C:\Users\HP\Desktop\Script\gamemodes\RP.pwn(5734) : error 029: invalid expression, assumed zero
C:\Users\HP\Desktop\Script\gamemodes\RP.pwn(5734) : warning 215: expression has no effect
C:\Users\HP\Desktop\Script\gamemodes\RP.pwn(5734) : error 001: expected token: ";", but found "]"
C:\Users\HP\Desktop\Script\gamemodes\RP.pwn(5734) : fatal error 107: too many error messages on one line
The problem is this line of was in the script for ages but why is it giving me error on it.
The error started showing up after i scripted something like not even close to this line.
And here is the line:
Код:
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])
Thanks And I Will +Rep You If You Help.
Reply
#2

Well, is SANZONE_AREA still defined?
Reply
#3

Nope.But as i said for some reason it isn't defined in the other script and it is still working.
Reply
#4

Are you sure? I wouldn't be surprised if it gave back a 0 all the time or if it is defined somewhere in an include in your other script.
Reply
#5

Look in all your includes until you find the one responsible with areas, then just define that or fix the define if it's already in there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)