BTW this is in a gametype not a mutator.
"Type mismatch in '=' " - what to do?
Help is appreciated.

Wormbo

01-02-2008, 09:18 AM

"Type mismatch in '=' " obviously points out a type mismatch in an assignment on the specified line. I suggest you look up the types of the variable you try to assign to and of the expression you are assigning to the variable.

Taboen

01-02-2008, 10:41 AM

"Type mismatch in '=' " obviously points out a type mismatch in an assignment on the specified line. I suggest you look up the types of the variable you try to assign to and of the expression you are assigning to the variable.

I'm guessing you mean the DefaultInventory.Length part. What do I change Length to?

I searched for what to fill in there but I don't know where to find that.
Searched through UTWeapon.uc Weapon.uc ...

Wormbo

01-02-2008, 10:02 PM

Again, compare the data types of both sides of the assignment and check whether the left side type matches (or at least is a super class of) the right side type.

For your information: the left side is not "Length", it's "DefaultInventory[DefaultInventory.Length]", so you need to find out the type of the DefaultInventory array.

Taboen

01-03-2008, 11:35 AM

Again, compare the data types of both sides of the assignment and check whether the left side type matches (or at least is a super class of) the right side type.

For your information: the left side is not "Length", it's "DefaultInventory[DefaultInventory.Length]", so you need to find out the type of the DefaultInventory array.

Hmm, I searched for DefaultInventory in every parent of UTCTFGame and it gave no results..

As you can see, I put it in function SetPlayerDefaults and that was enough.

I think I can even make the armor amount configurable by changing it to UTPawn(P).ShieldBeltArmor = ArmorAmount; with adding a configurable int ArmorAmount.

Thanks! :)

bushbomb

01-03-2008, 03:51 PM

I think I can even make the armor amount configurable by changing it to UTPawn(P).ShieldBeltArmor = ArmorAmount; with adding a configurable int ArmorAmount.

Thanks! :)

No problem :) So many help me, I try to help when I can.

P.S. you may want to edit your first post to change the topic from shieltbelt to shieldbelt.

Taboen

01-03-2008, 07:52 PM

No problem :) So many help me, I try to help when I can.

P.S. you may want to edit your first post to change the topic from shieltbelt to shieldbelt.

Lol, changed :D

Sardonyx

01-04-2008, 12:30 AM

For the record, I suspect that Wormbo wasn't being intentionally obtuse - he was being didactic. Part of what's nice about this community is that they'll help you get answers, but what's even nicer is that some folks (like Wormbo) will even go out of their way to teach you how to get your own answers.

Give a man some code, and you help him for a day
Teach a man to code, and you help him for a lifetime