Log in

View Full Version : Using x,y with SRL..



HairyDuncan2
08-11-2007, 02:00 AM
When I try and use x,y when I have used SRL as an include, it gives me "Duplicate identifier 'x' in script C:\Program Files\SCAR 3.06\Scripts\Runescape\PowerChopper.scar" I noticed that all the other scripts have used x and y but they don't seemed to have declared them as variables.
Cheers for the help. :confused:

Sp0rky
08-11-2007, 02:02 AM
x and y are used for the mouse procedures I believe. Just use iX and iY and declare them as integers yourself.

HairyDuncan2
08-11-2007, 02:11 AM
Righto, thanks for the fast reply =) But what is the difference between a mouse procedure and a variable. Thanks again

lordsaturn
08-11-2007, 03:22 AM
Mouse procedures are procedures used the move the mouse, obviously, =P.

Read some basic tutorials to understand variables and MMouse and Mouse.

Tim0suprem0
08-11-2007, 03:51 AM
HairyDuncan x and y are already defined in SRL as variables so you don't have to do it. (I think)

It isn't that they aren't variables, it's just that you don't have to define them, SRL makes your life easier. However like Spork-eh said, they're really just for mouse procedures, so if you want to do other things, make your own set up like iX,iY, ax,ay, etc.

HairyDuncan2
08-11-2007, 04:05 AM
HairyDuncan x and y are already defined in SRL as variables so you don't have to do it. (I think)

It isn't that they aren't variables, it's just that you don't have to define them, SRL makes your life easier. However like Spork-eh said, they're really just for mouse procedures, so if you want to do other things, make your own set up like iX,iY, ax,ay, etc.

Nope, gotcha. I did just want to use them for mouse procedures. I just didn't realise that if they were already declared in SRL then they would work in my script (i'm new). Thanks a lot guys.