SA-MP Forums Archive
Error Copilation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error Copilation (/showthread.php?tid=560857)



Error Copilation - byadrian - 30.01.2015

Hello guys.I need a help.
My helps is 4 errors: C:\Users\Adytza\Desktop\GMS\gamemodes\GMS.pwn(5152 ) : error 029: invalid expression, assumed zero
C:\Users\Adytza\Desktop\GMS\gamemodes\GMS.pwn(5152 ) : warning 215: expression has no effect
C:\Users\Adytza\Desktop\GMS\gamemodes\GMS.pwn(5152 ) : error 001: expected token: ";", but found "]"
C:\Users\Adytza\Desktop\GMS\gamemodes\GMS.pwn(5152 ) : error 029: invalid expression, assumed zero
C:\Users\Adytza\Desktop\GMS\gamemodes\GMS.pwn(5152 ) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Pawn(lines): if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4]);


Re: Error Copilation - 1fret - 31.01.2015

pawn Код:
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4]);

//try this
 if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])