SRL Archive - OSR Help

Type Mismatch?


Hexless

2013-04-01 20:18:18

I have a Const Called MapleLog With a colour next to it but i keep getting a type mismatch error and i need some help solving it :p
Thanks


[PHP]Procedure Fletch;
Begin
If Log = 'Maple' Then
Begin
If FindColorSpiralTolerance(X,Y,MapleLog,MSX1,MSY1,MSX2,MSY2,15) Then
Mouse(X,Y,15,15,False);
Wait(500+Random(250));
ChooseOptionMulti(['All']);
End;
End;[/PHP]

Sin

2013-04-01 20:18:49

const
MapleLog = 0000;

Edit:
Just saw your edit. What line does it error at?

Edit 2:

Procedure Fletch;
var
x,y:Integer;
begin
if Log = 'Maple' then
begin
if FindColorSpiralTolerance(X,Y,MapleLog,MSX1,MSY1,MSX2,MSY2,15) then
begin
Mouse(X,Y,15,15,False);
Wait(500+Random(250));
ChooseOptionMulti(['All']);
end;
end;
end;

Hexless

2013-04-01 20:19:56

From: Sin
const
MapleLog = 0000;

Ive got it as this

Const
MapleLog = '801370';

Hexless

2013-04-01 20:21:24

From: Sin
const
MapleLog = 0000;

Edit:
Just saw your edit. What line does it error at?


ill pm u the full code

Sin

2013-04-01 20:22:20

Nah don't. You're declaring MapleLog as a string.

MapleLog = '3428424' is not right, it is MapleLog = 3428424.
'' is used to declare a string.

Hexless

2013-04-01 20:24:59

From: Sin
Nah don't. You're declaring MapleLog as a string.

MapleLog = '3428424' is not right, it is MapleLog = 3428424.
'' is used to declare a string.


ooo i guess thats what i get when i take a break from scripting :P Cheers for ur help :)

Sin

2013-04-01 20:25:35

Pop into IRC if you have questions, I have PMs disabled.

Hexless

2013-04-01 20:30:26

From: Sin
Pop into IRC if you have questions, I have PMs disabled.


Okay Cheers