Log in

View Full Version : MSI running problem.



Ironduke
02-01-2012, 01:43 AM
When I click the MSI tab and hit run, I get this error

Running MSI...
[Error] (229:1): Identifier expected at line 228
Compiling failed.

Line 228 just says "var"

That's it, How do I fix it? Maybe var is supposed to be something else?

Thanks.

Spiker
02-01-2012, 05:13 AM
If there is nothing after var except "begin" then delete the var line, if this is not the problem, it would help if you posted that segment of code.

Good Luck

kevin33
02-01-2012, 05:43 AM
Post the segment and the segment before it please and I will tell you how to fix it.

Ironduke
02-03-2012, 12:35 AM
Nevermind guys it is no longer needed since I found a different script to use instead, but thank you anyways, but I was wondering if you could help me with this script error (the creator won't help because he is no longer updating it) I get :
[Error] (111:55): Type mismatch at line 110
Compiling failed.

And line 110 reads:

Wait(500+RandomRange(100,200)); MouseItem(i,False); Wait(500+RandomRange(100,200));

It's a simple Hard-leather body making script, and I kinda want to know how to fix it because it's the only hard-leather body making script on here and I need to get 57 crafting for dragonhide :\

Much appreciated.


If it helps here is some code before and beyond it.




begin
GameTab(tab_inv);
for I := 3 to 28 do
if (ExistsItem(I)) then
begin
Wait(500+RandomRange(100,200)); MouseItem(i,False); Wait(500+RandomRange(100,200));
ChooseOption('t-A');
end else
for I := 3 to 28 do
if (ExistsItem(I)) then
begin

Caotom
02-03-2012, 04:59 AM
I believe some enter lines have accidentally been removed, try hitting enter after each ; and running again, should work.

~Caotom

Ironduke
02-04-2012, 01:46 AM
Ahh I did that and now I get a

[Error] (112:23): Type mismatch at line 111

which reads:

MouseItem(i,False);

kevin33
02-04-2012, 01:51 AM
I couldve helped you with the other script that had the unknown identifier because that error is an easy fix. I have no idea what script you are using now so I cant rreally help.

Kyle Undefined
02-04-2012, 01:52 AM
All True/False params for the Mouse procedures are now mouse_Left/Right/None

Ironduke
02-04-2012, 02:03 AM
I couldve helped you with the other script that had the unknown identifier because that error is an easy fix. I have no idea what script you are using now so I cant rreally help.
I am trying to use Cru1z1ns Body Sticher because it is the only working "hard leather body" making script, and I need to do these up to 57 crafting for dragonhide because they're is plenty of those scripts, and thank you kyle but unfortunently I am unable to know whether to go with Left/Right /None because he said he was going to stop updating it about a month ago.

Unfortunately I may have to do it by hand which will be boring going through 5000 hardleather, but you're guys's help is very appreciated.

Kyle Undefined
02-04-2012, 02:04 AM
False == mouse_Left, True == mouse_Right;

kevin33
02-04-2012, 02:07 AM
Hmm well because the line is MouseItem(i,False);

I would figure because its false it would b mouse_right but I am not that sure.

E. Never mind Kyle confirmed it so its correct. Ninja'd

Ironduke
02-04-2012, 02:08 AM
Ahh thank you, but unfortunently now i'm getting a type mismatch at line 157 which reads:

MouseItem(RandomRange(2,5),true);

Sigh I think this script is beyond repair and I'm starting to think I shouldn't waste your guys's time with trying to help me out on an old script I'm trying to get working again for the sake of getting 40-57 crafting.

kevin33
02-04-2012, 02:09 AM
Because it is true would you not change it to mouse_left?

Ironduke
02-04-2012, 02:12 AM
Because it is true would you not change it to mouse_left?
I wasn't sure if you should do that for every single true but I did, now I hit run and it spams me with:


Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.


and it doesn't bring up runescape, sigh if only I had more scripting experience I wouldn't have to be an annoyance.

The top of the script reads:

program BodySticher;
//{$I SRL/SRL/misc/SMART.simba}
{$I SRL/SRL.simba}
//{$i srl/srl/misc/paintsmart.simba}

kevin33
02-04-2012, 02:16 AM
Error means nothing. Take away the // in front of the first
(//{$I SRL/SRL/misc/SMART.simba} should be {$I SRL/SRL/misc/SMART.simba} )
This will load smart and run

Kyle Undefined
02-04-2012, 02:16 AM
Only change the Mouse procedures to mouse_Left/Right, everything else stays the same.

kevin33
02-04-2012, 02:18 AM
Kyle he gets this error so what would he have to change it to?
a type mismatch at line 157 which reads:

MouseItem(RandomRange(2,5),true);

Ironduke
02-04-2012, 02:24 AM
EDIT: OH! Wait no! It actually worked! Tyvm guys after a little tweaking with the little to none scripting knowledge I have and your help it is now functional, great work guys, rep for the both of you!

kevin33
02-04-2012, 02:26 AM
Use Simba Tags around the script.

Ironduke
02-04-2012, 02:27 AM
Use Simba Tags around the script.
Check my edit'd post :)

kevin33
02-04-2012, 02:31 AM
Alright glad to see you got it to work. Feel free to ask questions anytime. People will always be there to help.

Ironduke
02-04-2012, 02:37 AM
Alright glad to see you got it to work. Feel free to ask questions anytime. People will always be there to help.
Me too! And will do! Bravo!