SA-MP Forums Archive
warning 215: expression has no effect - 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: warning 215: expression has no effect (/showthread.php?tid=495320)



warning 215: expression has no effect - Ryan McDuff - 16.02.2014

I'm having a little problem here, I'm not sure how to fix this error. I'll post the lines that have the following error in order:

PHP код:
C:\Users\Ryan\Desktop\SA-MP 0.3z\gamemodes\csrp6.pwn(70288) : warning 215expression has no effect
C
:\Users\Ryan\Desktop\SA-MP 0.3z\gamemodes\csrp6.pwn(70322) : warning 215expression has no effect
C
:\Users\Ryan\Desktop\SA-MP 0.3z\gamemodes\csrp6.pwn(73822) : warning 215expression has no effect 
70288:
PHP код:
Get3DZone(carPos[0], carPos[1], carPos[2], zonesizeof(zone)); 
70322:
PHP код:
Get3DZone(carPos[0], carPos[1], carPos[2], zonesizeof(zone)); 
73822:
PHP код:
Get3DZone(XYZzonesizeof(zone)); 



Re: warning 215: expression has no effect - Ryan McDuff - 16.02.2014

Anyone? -.-'


Re: warning 215: expression has no effect - Sledgehammer - 16.02.2014

Try changing sizeof(zone) too variable 70

EDIT: If this doesn't work, what is your zone variable?


Re: warning 215: expression has no effect - Ryan McDuff - 16.02.2014

I don't understand what you mean, could you provide an example?


Re: warning 215: expression has no effect - Sledgehammer - 16.02.2014

pawn Код:
Get3DZone(X, Y, Z, zone, sizeof(zone));
change too

pawn Код:
Get3DZone(X, Y, Z, zone, 70);
You shouldn't get any error's then.

EDIT: What is your zone define?


Re: warning 215: expression has no effect - Ryan McDuff - 16.02.2014

I did that and it got rid of my remaining error, but I still have the same warnings.