Results 1 to 4 of 4

Thread: Syntax Error

  1. #1
    Join Date
    Jan 2012
    Posts
    522
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Syntax Error

    [Error] (126:14): Syntax error at line 125
    Compiling failed.

    Line 126
    Simba Code:
    Case of 'skiller' then

    Anyone know how to fix this?
    Previously known as "Phyaskou"

  2. #2
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Should be

    Simba Code:
    case 'skiller' of
    'True':
      begin
        Code here
      end;

    'False':
      begin
        Code here
      end;
    end;
    Current Project: Retired

  3. #3
    Join Date
    Jan 2012
    Posts
    522
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks. Saved me there, otherwise I would've spent another 10 minutes on it
    Would a Deposit Box count as bank screen?
    Previously known as "Phyaskou"

  4. #4
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    You do realise that what you are trying to test for will always result in false (unless you have 'skiller' in the list of things you test for), right?

    What you are essentially doing is:
    Simba Code:
    if('skiller' = 'True') then
        ...
      if('skiller' = 'False') then
        ...

    Right?
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

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
  •