no longer being used Posted July 31, 2018 I've just started using acs and I made this script, Quote script 1 (void) { Print(s:"Nice shot! I've unlocked a button for you, it'll unlock the sewers!"); Delay (8); Ceiling_RaiseToNearest(6969,30) } and it gives me this error. Quote Line 6 in file "C:\Users\Vladimir\AppData\Local\Temp\SLADE3\SCRIPTS.acs" ... C:\Users\████████\AppData\Local\Temp\SLADE3\SCRIPTS.acs:6: Missing semicolon. > } > ^ I've tried everything and it wont compile! What do I do? 0 Share this post Link to post
Aquila Chrysaetos Posted July 31, 2018 You're missing a semicolon on the Ceiling_RaiseToNearest(6969,30) line. It should look like this: Ceiling_RaiseToNearest (6969, 30); 0 Share this post Link to post
no longer being used Posted July 31, 2018 I tried that and it gave me this error. Quote Line 5 in file "C:\Users\YOUAINTLOOKINGATMYPC\AppData\Local\Temp\SLADE3\SCRIPTS.acs" ... C:\Users\Vladimir\AppData\Local\Temp\SLADE3\SCRIPTS.acs:5: Function ceiling_raisetonearest is used but not defined. 0 Share this post Link to post
Aquila Chrysaetos Posted July 31, 2018 You probably didn't include the script library, then. At the top, you always have to write this bit: #include "zcommon.acs" Otherwise, it won't know what to do and give you that error. 0 Share this post Link to post
no longer being used Posted July 31, 2018 Thank you so much! It worked! 1 Share this post Link to post
Kappes Buur Posted July 31, 2018 FWIW, GZDB-BF sports a snippet tool while in the script editor, which makes it easy to insert some useful code sequences Even better, you can create your own snippets. See the section Code Snippets in the Refmanual. 0 Share this post Link to post