Results 1 to 5 of 5

Thread: Compiling errors

  1. #1
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Compiling errors

    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:
    Code:
    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?
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  2. #2
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    bump
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  3. #3
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You use = in an if statement:

    e.g.
    Simba Code:
    if x = 15 then
    ...

    You use := when assigning values

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

    I'm assuming you are assigning NPCchars to charsNPC, so use :=
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  4. #4
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    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...
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  5. #5
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    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?
    Solar from RiD.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •