Zulk RS Posted February 18, 2017 I was trying to use this HudMessage function in ACS but I keep getting a "Invalid statement error. script 2(void) { void HudMessage(s:"Don't jump off moving vehecles kids. \n This PSA is brought to you by ZULK RS."; HUDMSG_PLAIN, 0, CR_GOLD, 0.5, 0.5, 5); } I don't know what I'm doing wrong. Can someone please help? 0 Quote Share this post Link to post
scifista42 Posted February 18, 2017 Zulk-RS said:void HudMessage Change this to just:HudMessage 0 Quote Share this post Link to post
Zulk RS Posted February 18, 2017 I did that and now it works but it stays on the screen indefinitely. 0 Quote Share this post Link to post
scifista42 Posted February 18, 2017 Try HoldTime 5.0 instead of 5. Also make sure the script isn't getting executed repeatedly. 0 Quote Share this post Link to post
Zulk RS Posted February 18, 2017 That worked. HudMessage functions confuse me... Thanks for your help again. 0 Quote Share this post Link to post
Zulk RS Posted February 18, 2017 Umm... I ran into a different problem this time. I used this code:script 4 (void) { HudMessage(s:"You didn't need to come here, you know.\n But, since you're here, congratulations on finding the first text slate!"; HUDMSG_PLAIN, 0, CR_PURPLE, 0.5, 0.5, 6.0); Delay (35.0); HudMessage(s:"Just so you know, the exit switch is the computer panel in the small cart with the imp in it.\n The one near the spot where you teleported in."; HUDMSG_PLAIN, 0, CR_PURPLE, 0.5, 0.5, 7.0); Delay (35.0); HudMessage(s:"Good luck!"; HUDMSG_PLAIN, 0, CR_PURPLE, 0.5, 0.5, 1.0); } Instead of waiting 1 sec after each message has stopped showing before showing the next one, it just doesn't show anything at all. 0 Quote Share this post Link to post
scifista42 Posted February 18, 2017 Don't write numbers with a decimal point into Delay, unless you want it to wait 35*65536 tics. 0 Quote Share this post Link to post
Zulk RS Posted February 18, 2017 Thanks again! Everything's working the way it should now. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.