View Full Version : Wont Compile!
Yodix
01-31-2012, 07:56 PM
I'm working on a powerfisher, but I can't get the script to compile. There seems to be something wrong at line 93. The script is not finished yet, but I can't proceed before the dropping procedure is finished. Please tell me what I'm doing wrong, and if you have any suggestions please tell me! :)
MouseItem(FishPattern[I],false); to MouseItem(FishPattern[I], MOUSE_RIGHT);
NickMystre
01-31-2012, 08:01 PM
MouseItem (line 93) takes two integers as arguments. Your second one is a boolean - which needs to be changed.
Also, function Lurefish should return a boolean, but nowhere in that function do you set 'Result' to either 'true' or false' which is what it needs.
Yodix
01-31-2012, 08:17 PM
Thanks Guys! But for some reason it won't drop the fishes once it has a full inventory. Do you know why?
NickMystre
01-31-2012, 08:21 PM
What does it do, does it not do ? Details, please !
EDIT: You have the procedure DropFish, but it's never called.
Yodix
01-31-2012, 09:43 PM
I updated it, and put DropFish; in the main loop, but once it has fished a full inventory, it doesn't do anything and it highlights line 90 and says:
Error: Out Of Range at line 90
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap].
What I want it to do is find the fishing spot, click on it, and once it gets a full inventory it should drop the fishes.
Spiker
02-01-2012, 05:46 AM
I updated it, and put DropFish; in the main loop, but once it has fished a full inventory, it doesn't do anything and it highlights line 90 and says:
Error: Out Of Range at line 90
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap].
What I want it to do is find the fishing spot, click on it, and once it gets a full inventory it should drop the fishes.
I don't see where you added DropFish; Make sure you included the updated script after saving it.
Good Luck
Yodix
02-02-2012, 04:24 PM
Here's the updated version, sorry about that :)
Nataurs
02-02-2012, 06:22 PM
@ line 90 add a semicolon( ; ) at the end of the TIntegerArray
Yodix
02-03-2012, 03:19 PM
There is one at the end of line 90, is that the one you mean or should it be placed elsewhere?
Yodix
02-04-2012, 01:59 PM
Please help! :)
lilcmp1
02-04-2012, 03:58 PM
Your last txt file compiled for me. Are you still getting errors?
Yodix
02-07-2012, 11:45 PM
It compiles, but it won't drop the fishes once it has a full inventory :(
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.