Coding problems
Posted: Sat Aug 07, 2010 3:19 pm
Hey, I'm not really a coder but I can understand when I see some codes but when I want to make something new... I usually get some error.
Can anyone help me with this:
My error is "C:\DeusEx\TrainingSystem\Classes\AddAugTrigger.uc(23) : Error, Call to 'AddAug': type mismatch in parameter 1"
But I don't think it's the only error in my file
Can anyone help me with this:
Code: Select all
//======================================================================
// Trigger to give a aug to the player for DXDL_Training - Darma Labs Inc. 2010 - 2012
//======================================================================
class AddAugTrigger extends Trigger;
var travel AugmentationManager AugmentationSystem;
function AddAug(class<Augmentation> WantedAug)
{
local Augmentation anAug;
if (AugmentationSystem != None)
{
anAug = AugmentationSystem.GivePlayerAugmentation(WantedAug);
if (anAug == None)
ClientMessage(GetItemName(String(WantedAug)) $ " is not a valid augmentation!");
}
}
function Touch(Actor toucher)
{
AddAug(toucher,WantedAug); // I think it's this the problem
}
defaultproperties
{
}
But I don't think it's the only error in my file