SA-MP Forums Archive
An issue with errors on a .inc file - 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: An issue with errors on a .inc file (/showthread.php?tid=437621)



An issue with errors on a .inc file - Aeonosphere - 16.05.2013

Essentially here is the code...

Code:
new delmult = (((count+1)*68)+((count+1)*1)));
new elsemult = ((count)*68)-((count)*2));
new startdel = ((count)*68)-((count)*2)-1);
And here are the errors...

Code:
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(443) : error 001: expected token: ";", but found ")"
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(443) : error 029: invalid expression, assumed zero
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(443) : warning 215: expression has no effect
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(444) : error 001: expected token: ";", but found ")"
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(444) : error 029: invalid expression, assumed zero
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(444) : warning 215: expression has no effect
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(445) : error 001: expected token: ";", but found ")"
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(445) : error 029: invalid expression, assumed zero
C:\Program Files\PAWN Compiler\include\SendClientMulti.inc(445) : warning 215: expression has no effect
If anyone could help me out, it'd be most appreciated.


Re: An issue with errors on a .inc file - IstuntmanI - 16.05.2013

pawn Code:
new delmult = ((((count+1)*68)+((count+1)*1)));
new elsemult = (((count)*68)-((count)*2));
new startdel = (((count)*68)-((count)*2)-1);
You should install notepad, it's easier to manage brackets and parantheses.


Re: An issue with errors on a .inc file - Aeonosphere - 16.05.2013

Quote:
Originally Posted by IstuntmanI
View Post
pawn Code:
new delmult = ((((count+1)*68)+((count+1)*1)));
new elsemult = (((count)*68)-((count)*2));
new startdel = (((count)*68)-((count)*2)-1);
You should install notepad, it's easier to manage brackets and parantheses.
Wow, thanks mate... that's what I get for running gedit instead of Emacs for a change. :P