Log in

View Full Version : Need Some Help! Plz Any1



The Lord Ahmed
07-13-2007, 04:04 PM
HI,

I need some help with my first script,
It comes up with all these errors,

Program AutoTalker;
{.Include SRL/SRL.scar}

Const
Username = 'user';
BuyYews = True; // R u Buying Yews , If Not Buying Yews, Proceed To Line 7.
Price = 310; //Price You Want To Sell Yews Ea (only for use with yews)
StyleOfText = 'Wave';// wave, scroll, etc etc.
ColorOfText = 'Red';// Red, Cyan, Purple etc etc.
CustomText = 'Text'; //If Not Buying Yews, Type Your Own text Here

//removed begin

Procedure Talk;
Begin
If (BuyYews=True) then
wait(4000+random(300))
typsend(inttostr(StyleOfText)+ inttostr(ColorOfText),'Buying All Yews'+ inttostr(Price) +'ea.'+ inttostr(username))
End Else
wait(4000+random(300))
typesend(inttostr(StyleOfText)+ inttostr(ColorOfText)+ inttostr(CustomText)

End;

Begin
repeat
Talk
until(false);

end.




It says ::

Failed when compiling
Line 20: [Error] (14469:1): Invalid number of parameters in script C:\Documents......

I cant see any extra perimetrs that arent meant to be there??

So can Any1 Help me Out ! :confused: im confused

Pentti
07-13-2007, 04:18 PM
Take out the begin after consts

The Lord Ahmed
07-13-2007, 04:19 PM
ill try tht now

The Lord Ahmed
07-13-2007, 04:39 PM
now t says

Failed when compiling
Line 14: [Error] (14:1): 'BEGIN' expected in script C:\Documents and Settings\Basilla

Pentti
07-13-2007, 04:45 PM
Procedure Talk;
begin
If (BuyYews=True) then

rotflmfwao
07-13-2007, 04:56 PM
BTW, include srl and use typesend, because sendkeys is VERY, VERY detectable.

The Lord Ahmed
07-13-2007, 05:03 PM
thnk test now

The Lord Ahmed
07-13-2007, 05:07 PM
RotFlmlao, Thanks, for advice , bu cud u plz tell me how to use type send plz, and pentti

i the begin and now it says::

Failed when compiling
Line 19: [Error] (19:1): Invalid number of parameters in script C:\Documents and Setting........

The Lord Ahmed
07-13-2007, 05:09 PM
Thanks Pnti for helping me, this is my first script eva :D

rotflmfwao
07-13-2007, 05:12 PM
Ok, you need {.Include SRL/SRL.scar} right after you put Program whatever; and then it works just like SendKeys.

Btw, go here:

http://www.villavu.com/forum/showthread.php?t=6413?t=7421&highlight=Fixing+Errors

to fix your errors

The Lord Ahmed
07-13-2007, 05:23 PM
thnks rot!!
and Penti!!, ur both so helpfull

rotflmfwao
07-13-2007, 05:48 PM
BTW, just some friendly advice, don't doublepost, use the edit button XD