SRL Archive - Help

Srl5


Grihmm

2012-01-04 02:52:54

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?

2012-01-04 06:01:51

From: Grihmm
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

2012-01-04 06:10:45

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. :)