View Full Version : Whenever I run a script this pop's up in debug....
catbat78
01-29-2012, 10:45 PM
So, just recently after I updated my extensions for Simba this started popping up whenever I try to run a script on either my computers...:
[Error] (36:32): Type mismatch at line 35
Compiling failed.
And line 35 says:
LampSkill := 'Fishing';
Sorry if this has already been posted, just redirect me to the thread if it has.. ::p
Supertrent1
01-29-2012, 10:49 PM
So, just recently after I updated my extensions for Simba this started popping up whenever I try to run a script on either my computers...:
And line 35 says:
Sorry if this has already been posted, just redirect me to the thread if it has.. ::p
Can we have a little bit more of the script. Anyways try this
LampSkill := ('Fishing');
Nebula
01-29-2012, 11:05 PM
Skill_fishing I believe would be the fix.
Edit:
Yes, it is. change that line to:
LampSkill := Skill_Fishing;
catbat78
01-29-2012, 11:13 PM
Yah the parenthesis didn't work. :(
Oh, and by the way I'm using Heavy Rodder by Flight but it's been doing the same thing on other scripts too.
Nebula
01-29-2012, 11:15 PM
Read what I just said,
LampSkill := Skill_Fishing;
catbat78
01-29-2012, 11:19 PM
Oh sorry didn't see your post; didn't refresh the page.. :p
Thanks for the fix Nebula!
Kyle Undefined
01-29-2012, 11:20 PM
LampSkill := ['Fishing'];
That's how you fix it, LampSkill is a TStringArray, which it why the brackets are needed.
catbat78
01-29-2012, 11:23 PM
Thanks for the help everyone, you can lock the thread now.. :)
m3gaman3g3nd
01-29-2012, 11:24 PM
Also A type usually means type of variable so when you see type mismatch its usually either due to lets say an integer vs a tpoint.... so if you put a Tpoint in a perameter when you require an integer you will get type mismatch... further more now that i say this, if want to use a tpoint as an integer you will simply put tpoint.x ... tpoint.y ... get it?
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.