Dozens of unexplainable errors in a downloaded include - 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: Dozens of unexplainable errors in a downloaded include (
/showthread.php?tid=631702)
Dozens of unexplainable errors in a downloaded include -
NealPeteros - 03.04.2017
Hey, I found this old include which was dated back in 2015. I haven't had the guts to bump a 2-year-old thread for this, so I decided to try posting it here. This[
click_me] is an include I found while I was searching for some random stuffs about knives. Thought it would be interesting to have a throwing-knife system. I added it on my gamemode, and rather found out the bugs in it. The errors are shown below. I'd rather post a pastebin of what's inside the include. [
click_me]
Код:
(230) : error 001: expected token: ";", but found "-identifier-"
(230) : error 017: undefined symbol "f"
(230) : warning 215: expression has no effect
(237) : error 001: expected token: ";", but found "-identifier-"
(237) : error 017: undefined symbol "f"
(237) : warning 215: expression has no effect
(242) : error 001: expected token: ";", but found "-identifier-"
(242) : error 017: undefined symbol "f"
(242) : warning 215: expression has no effect
(247) : error 001: expected token: ";", but found "-identifier-"
(247) : error 017: undefined symbol "f"
(247) : warning 215: expression has no effect
(252) : error 001: expected token: ";", but found "-identifier-"
(252) : error 017: undefined symbol "f"
(252) : warning 215: expression has no effect
(256) : error 001: expected token: ";", but found "-identifier-"
(256) : error 017: undefined symbol "f"
(256) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
12 Errors.
Re: Dozens of unexplainable errors in a downloaded include -
DarkSkull - 03.04.2017
Try removing all the 'f' from the lines.
Example:
PHP код:
new Float:fAddition = 0.0f;
To
PHP код:
new Float:fAddition = 0.0;
I don't think we need to use f while defining float in PAWN.
Re: Dozens of unexplainable errors in a downloaded include -
NealPeteros - 04.04.2017
Cool, thanks!