Results 1 to 3 of 3

Thread: Srl5

  1. #1
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Srl5

    Well I updated to SRL5, and now when I try to compile my script it says this in my debug:
    Simba Code:
    Compiling failed.
    [Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(16:34): Semicolon (';') expected at line 15
    Compiling failed.


    Then it pops up a tab named smart with the first line of this highlighted:
    Simba Code:
    procedure HoldMouse(x, y: Integer; button : integer);
    begin
      if button = mouse_left then
        SmartHoldMousePlus(x,y,1)    mouse
      else if button = mouse_middle then
        SmartHoldMousePlus(x,y,2)
      else if button = mouse_right then
        SmartHoldMousePlus(x,y,3)
      else
        raiseexception(ercustomerror,'Unknown mouse button in SmartHoldMousePlus');
    end;
    Last edited by Grihmm; 01-04-2012 at 07:57 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Grihmm View Post
    Well I updated to SRL5, and now when I try to compile my script it says this in my debug:
    Simba Code:
    Compiling failed.
    [Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(16:34): Semicolon (';') expected at line 15
    Compiling failed.


    Then it pops up a tab named smart with the first line of this highlighted:
    Simba Code:
    procedure HoldMouse(x, y: Integer; button : integer);
    begin
      if button = mouse_left then
        SmartHoldMousePlus(x,y,1)    mouse
      else if button = mouse_middle then
        SmartHoldMousePlus(x,y,2)
      else if button = mouse_right then
        SmartHoldMousePlus(x,y,3)
      else
        raiseexception(ercustomerror,'Unknown mouse button in SmartHoldMousePlus');
    end;
    Are you sure you didn't edit it? There seems to be an extraneous word 'mouse' in there.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah I saw that, but it was there. I don't know enough to go messing with this. >.>

    Edit: I deleted the mouse and it is working now. Maybe it got typed there by accident when I tried to look up a procedure on the functionlist. Thanks sir.
    Last edited by Grihmm; 01-04-2012 at 11:12 AM.

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
  •