Hey, im working on completeing my first green dragon script with wildy wall and everything, problem is I keep getting a "Type mismatch" any help? I can give you a copy of this script when it ccomes out.
Hey, im working on completeing my first green dragon script with wildy wall and everything, problem is I keep getting a "Type mismatch" any help? I can give you a copy of this script when it ccomes out.
Post the code that gets the error. We can't help if you don't give much information![]()
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
You cannot assign a value of a different type to another type.. Bool cannot be assign an int.. int cannot be assigned a string.. etc.. There are functions for conversions such as
StrToIntDef, IntToStr, Point cannot be assigned a TPA.. etc..
Function PickUpDragonbones: Boolean;
Var
X, Y: Integer;
begin
If Dbones = False then Exit;
If Dbones = True then
begin
FindNormalRandoms;
If FindObjOnScreen(['ake', 'Take', 'ke', 'ak'], ['ragon bones'],14409957,1950,577,False,0.38,0.55) Then
Begin
Wait(500);
writeln('You have found some Dragon Bones!');
While IsMoving do
Wait(50);
FindNormalRandoms
Wait(RandomRange(300,400));
Inc(Bones);
End;
end;
end;
I'm just starting, so im probably messing something up![]()
At which line is the type mismatch? Also, try to put your code in the little code bar thingamjaigs.
Mismatch is at line 1209 so the line that says If Dbones = False then Exit;
I've honestly got no idea what the codebar is, im so new to this, and appreciate the help very much![]()
What type is DBones? A string?
what you do is put
[CODE]
and then put your script in between those two.
when you're all done, put the same thing again but this time put a [/CODE
make sure you don't forget the ending bracket, I didn't put it in cause then the code for the code wouldn't show haha
it looks like this:
Code:ello
It could be, tbh i don't even know.. thats how new i am to this, i basically just looked off other scripts to try to get mine to work :/ but that is the only problem i've gotten with this script so far..
Code:uhm test?
The problem with this might be that i copied like some parts from other scripts, so that might be giving me problems, maybe i should start with something easier? Although even then, i don't know how to do stufff myself, ill just look and use what other scripts have on them :/
Last edited by BraK; 04-19-2012 at 08:01 PM.
Script(s) by me:
Last edited by BraK; 04-19-2012 at 08:01 PM.
Completed Scripts [2]:
PowerWillowsby Edge
AllInOneChopper by Edgee
Last edited by BraK; 04-19-2012 at 08:01 PM.
Completed Scripts [2]:
PowerWillowsby Edge
AllInOneChopper by Edgee
If he has the original script writers permission then he is allowed to modify it.
"Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."
Look forward to this.. I was gonna start this soon >.<
Sounds like you're having trouble with some of the basics, such as declaring the correct variables, etc. I personally think you should take smaller steps and try making a basic script first, such as a powerchopper/miner, to learn basic functions, then slowly proceed with your coding. It'll take far longer to make a script copying and pasting bits if you're not even sure what they do, as well as this, you'll have many bugs and errors, the script probably wont even work and you'll feel like its a waste. At least if you make the code (mostly) then you'll feel like you've achieved more and you'll also know basic - intermediate coding.
Just my opinion anyway :P Good luck with whatever you decide to do.
FEEL FREE TO PM ME ABOUT ANYTHING! Will help over Teamviewer...just ask!!"WITH A NEW QUESTION COMES A NEW CHALLENGE"
Silentcore's AIO Service team !!! Pm me if you want questing done or service done or post on thread ofc
There are currently 1 users browsing this thread. (0 members and 1 guests)