SRL Archive - Help

Compiling errors


Master BAW

2012-09-22 07:33:38

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

2012-09-23 13:35:41

bump

Footy

2012-09-23 13:38:06

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

2012-09-23 14:12:09

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

2012-09-23 15:27:56

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?