Jump to content
sanjarmax1

Why it say Variable Expected ?? Please Help ASAP

Recommended Posts

Hey guys, i'm kind of new in this Scar macro thing and i need some help.. i was trying to make my own macro for a game and i made this script :

 

begin

Wait(2000)

ClickMouse(15, -74, False)

if FindColorTPA(61, 153, 15856113, False) then

ClickMouse(61, 153, False)

end.

 

now when i press start it gives me an error of Variable Expected in line 4 where i wrote the number "6" please help me as soon as possible ! thank you very much !!

Link to comment
Share on other sites

hi!

First. clickmouse with negative num will not do any good and must be Clickmouse(x,y,mbLeft) or Clickmouse(x,y,mbRight)

secont.

most search functions in scar use variables to store coordinates of color or images.

 

function

FindColorTPA(out X: longInt; out Y : Longint; Color : LongInt; TPA : Tpointarray): boolean

so for that function you ned two integer and one TpointArray variable:

 

Var x,y :Integer;

arr : tpointarray;

 

begin....

 

and i think you shoud use findcolor function

Edited by Neron
Link to comment
Share on other sites

hi!

First. clickmouse with negative num will not do any good and must be Clickmouse(x,y,mbLeft) or Clickmouse(x,y,mbRight)

secont.

most search functions in scar use variables to store coordinates of color or images.

 

function

FindColorTPA(out X: longInt; out Y : Longint; Color : LongInt; TPA : Tpointarray): boolean

so for that function you ned two integer and one TpointArray variable:

 

Var x,y :Integer;

arr : tpointarray;

 

begin....

 

and i think you shoud use findcolor function

 

wow i did not understood anything lol .. is there a function of only findcolor without the TPA ? i dont understand what is integer and how i need to find two of those (?)

and why i cant use : ClickMouse(x,y,False) action and i have to do with mbRight or mbLeft ? thanks for helping !

Link to comment
Share on other sites

wow i did not understood anything lol .. is there a function of only findcolor without the TPA ? i dont understand what is integer and how i need to find two of those (?)

and why i cant use : ClickMouse(x,y,False) action and i have to do with mbRight or mbLeft ? thanks for helping !

 

you must learn basic

mouse: http://wiki.scar-divi.com/ClickMouse

integer: http://wiki.scar-divi.com/Integer

Findcolor http://wiki.scar-divi.com/FindColor

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...