Author Topic: [solved]The Type Mismatch Nightmare (The hell is causing my error? :S)  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
can anyone see whats causing the error?

http://pastebin.com/Qm7k4Qt3
« Last Edit: August 27, 2011, 01:08:05 am by frosty »
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: The Type Mismatch Nightmare (The hell is causing my error? :S)
« Reply #1 on: August 20, 2011, 05:44:26 am »
Step 1: You're handed the exact line of the problem, go there. (439:22, Type mismatch)

TP[ID] := acd[11];

Seems fairly straight forward.


Step 2: Check what type TP is an array of, and what acd is an array of.

acd (array of string) was fairly straight forward, it was just a couple of lines above the error (although not local to the procedure, but that's clearly just a mistake)

TP (array of boolean) was slightly harder, and required the use of a super secret developer tool, which you can usually access via ctrl + f.


So that was about two minutes of work. Repeat this process for the next error after you fix that as well...

Edit: And the one after that. And the one after that. And the one after that.

Edit: 8 of the same error? How about you try things you're not sure of once and see if it works before you put it everywhere. After those errors, apparently you're trying to call a function that doesn't exist four times. After that it compiles, but clearly doesn't work...
« Last Edit: August 20, 2011, 05:54:34 am by Boblekonvolutt »

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: The Type Mismatch Nightmare (The hell is causing my error? :S)
« Reply #2 on: August 27, 2011, 01:07:48 am »
seems i cant set a bool from string unless i use a custom strtobool function, problem solved
check out my server! click here

If at first you don't succeed, Improvise! :D