Log in

View Full Version : Compiling errors



Master BAW
09-22-2012, 11:33 AM
Hello,

everytime SRL updates I got some errors. This was because I had smart 8.0 installed I thought. I could fix them easily
(One was in SmartParams and one was in paintsmart.simba)
but today I tried to start my scripts again but I get this:

Compiling failed.
[Error] C:\Simba\Includes\SRL/SRL/core/simba.simba(382:10): Unknown identifier '' at line 381

It makes no sense because on this line you only see this:

NPCChars = CharsNPC;

I don't know how to fix this. Anyone having the same problems? how did you fix it? Is it better to go back to another SMART , and if yes, which one and how?

Master BAW
09-23-2012, 05:35 PM
bump

Footy
09-23-2012, 05:38 PM
You use = in an if statement:

e.g.


if x = 15 then
...


You use := when assigning values

e.g.
x := 12
//x is now equal to 12.

I'm assuming you are assigning NPCchars to charsNPC, so use :=

Master BAW
09-23-2012, 06:12 PM
But isn't that strange? Because this was in simba.simba, a SRL file I didn't change anything in...
Maybe a mistake?
Anyway, I updated SRL today again and restarted my computer (because it hadn't been off for over a week, and had ran a lot of simba's, I thought this might had an influence) and now it works without those compiling errors... :)

Solar
09-23-2012, 07:27 PM
Sometimes if I try running a script straight after I've loaded it I get an error. I just try again a few seconds later and it usually works. Maybe the same happened for you?