SRL Archive - RS3 Help

Exception in Script: Invalid evaluation


Thisaintmeyo

2014-09-30 14:37:11

I wanted to set up more than one procedure but I keep getting this error, I have it set in my main loop to run and when you click on the line it highlights procedure, the beginning and end of the procedure.

I named a procedure that did not exist and gave the program the same name as one of the procedures so it was yelling at me. After fixing a missing end; and those two issues I no longer got that error and the script ran as intended.

The Mayor

2014-09-30 16:18:09

From: Thisaintmeyo
I wanted to set up more than one procedure but I keep getting this error, I have it set in my main loop to run and when you click on the line it highlights procedure, the beginning and end of the procedure.


How can anyone help if you don't post your code :p

Thisaintmeyo

2014-09-30 16:32:30

From: The Mayor
How can anyone help if you don't post your code :p


My bad I just thought it was a general question, kind of shy on how hard simple stuff turned out to be for me.

bonsai

2014-09-30 17:02:38

Four things:

* You're missing a ';' on one of your 'end's.
* You have a procedure in the middle of things that has no name. Either get rid of the loggedin stuff or make it a procedure.
* You can't name that function correctSettings because that's the name of the program. That's why the compiler is complaining.
* Don't be shy. None of us was born knowing it, so I think everyone can appreciate how frustrating it is in the beginning. Ask away.

Hoodz

2014-09-30 17:07:40

From: bonsai
Four things:

* You're missing a ';' on one of your 'end's.
* You have a procedure in the middle of things that has no name. Either get rid of the loggedin stuff or make it a procedure.
* You can't name that function correctSettings because that's the name of the program. That's why the compiler is complaining.
* Don't be shy. None of us was born knowing it, so I think everyone can appreciate how frustrating it is in the beginning. Ask away.


* forgot an end; too

Thisaintmeyo

2014-09-30 17:55:12

I see, I forgot to take that part out after I took some other code out and must have looked over it 3 times. It now logs into the lobby and fixes the initial options, after I get it to fix the interface, I will probably be back before then :p, I will post the new script in FirstScripts.

Thank you for your help.