Log in

View Full Version : Srl5



Grihmm
01-04-2012, 07:52 AM
Well I updated to SRL5, and now when I try to compile my script it says this in my debug:
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:
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;

Wizzup?
01-04-2012, 11:01 AM
Well I updated to SRL5, and now when I try to compile my script it says this in my debug:
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:
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.

Grihmm
01-04-2012, 11:10 AM
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. :)