View Full Version : Odd Error
I keep on getting a type mismatch error when running this and the NPC I'm looking for is not on the main-screen.
Here's the code: http://paste.villavu.com/show/MCIa1d6DgZUk6xBuun1P/
Brandon
04-17-2011, 10:18 PM
Type mismatch cant be from it not being on screen :S... When its on screen aka Mainscreen? Does it not give this error? Type mismatch is when parsing the wrong parameters to a function..
I believe your attempted to a walk to a tile in which you cannot walk..
When its onscreen the code exits. BTW, the error is at Params[1] and sometimes at waitfuncex('tileonmswrap', params, ...)
Edit: REsolved. Thanks dgby
i luffs yeww
04-18-2011, 01:00 AM
What was the solution? :)
Dgby714
04-18-2011, 01:16 AM
What was the solution? :)
I think you said it first, Variant cant be a TTile.
I think you said it first, Variant cant be a TTile.
Yeah I was thinking about this since yesterday but I didn't know/where how to check what it supports.
p.s: Your an inspiration :p
i luffs yeww
04-18-2011, 01:39 AM
Well that has to be a bug, right? Why couldn't a variant support a TTile? Shouldn't it support any type?
Well that has to be a bug, right? Why couldn't a variant support a TTile? Shouldn't it support any type?
In my opinion it should but maybe PS is geared up like that ... Maybe PS doesn't support custom records as variants...
Bixby Sayz
04-18-2011, 01:45 AM
I believe only integers and strings are supported by variants in PS.
Dgby714
04-18-2011, 04:04 AM
I believe only integers and strings are supported by variants in PS.
All basic types.
i luffs yeww
04-18-2011, 05:15 AM
Well all types use a basic type, so I don't see why this should be unsupported. :/ Unless we'd just have to make a different type that supported custom types or something? dunno.
HarryJames
04-18-2011, 10:33 AM
You could just return a TIntegerArray;
result.[0] and result.[1] for x and y respectively?
i luffs yeww
04-18-2011, 10:54 AM
You could just return a TIntegerArray;
result.[0] and result.[1] for x and y respectively?
It seems like that would work (dunno if there's more bugs in PS that I'm unaware of :p), but it also seems silly that you can't use custom types.
This certainly should be a suggestion for newer PS version things...
Dgby714
04-18-2011, 06:34 PM
You could just return a TIntegerArray;
result.[0] and result.[1] for x and y respectively?
Already done =P that was my suggestion.
This certainly should be a suggestion for newer PS version things...
Simba will not be using PS soon. We will be moving to Lape.
Already done =P that was my suggestion.
Simba will not be using PS soon. We will be moving to Lape.
As long as there are more tuts ... I'm always open to learn :)
HarryJames
04-18-2011, 07:29 PM
Wohoo, I now feel like i've made a decent contribution to the forum :3
Dgby714
04-18-2011, 08:42 PM
Wohoo, I now feel like i've made a decent contribution to the forum :3
Made me lol!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.