KF Error Compiling !RTD

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

***Stuxnet***

FNG / Fresh Meat
Hello all anyone would have any idea what problem?

KFModsRTD.RTDAddAmmo: Unknown property in defaults: bIsUnique=True
KFModsRTD.RTDAddAmmo: Unknown property in defaults: bFadeMessage=True
KFModsRTD.RTDAddAmmo: Unknown property in defaults: Lifetime=6
KFModsRTD.RTDAddAmmo: Unknown property in defaults: StackMode=SM_Down
KFModsRTD.RTDAddAmmo: Unknown property in defaults: PosY=0.800000
Code:
class RTDAddAmmo extends RTDFaceBase;

// The function gets triggered when a player gets this face
// up
static simulated function ModifyPawn(Pawn Other)
{
    local int AddAmmo;

    // Check if we are running on the server side
    if (Other.Role != ROLE_Authority)
        return;

    // Calculate the amount (%) of ammo the player gets (per gun/weapon)
    AddAmmo = 10 + Rand(51); // Between 10-50% ammo

    GiveAmmo(Other, AddAmmo);

    // Set the message to be shown in the chat box
    SetMessage(default.Message);

    // Set the message to be shown in the center of the screen
    // of the triggering player
    SetPersonalMessage(default.PersonalMessage);
}

static function GiveAmmo(Pawn pawn,float Percentage)
{
    local KFHumanPawn human;
    Local Inventory Inv;

    human =  KFHumanPawn(pawn);

    for (Inv = human.Inventory; Inv != None; Inv = Inv.Inventory)
    {
        if ((KFAmmunition(Inv) != None) && (KFAmmunition(Inv).AmmoAmount < KFAmmunition(Inv).MaxAmmo))// && (FragAmmo(Inv) == None) )
        {
           KFAmmunition(Inv).AmmoAmount += KFAmmunition(Inv).MaxAmmo / 100 * Percentage;
           if (KFAmmunition(Inv).AmmoAmount > KFAmmunition(Inv).MaxAmmo)
               KFAmmunition(Inv).AmmoAmount = KFAmmunition(Inv).MaxAmmo;
        }
    }
}

// Override the properties

defaultproperties
{
     Message="found some ammo!"
     PersonalMessage="You have found some ammo. Enjoy!"
     FaceType=1
     bIsUnique=True
     bFadeMessage=True
     Lifetime=6
     StackMode=SM_Down
     PosY=0.800000
}
 

***Stuxnet***

FNG / Fresh Meat
http://wiki.beyondunreal.com/Legacy:Compiler_Errorshttp://wiki.beyondunreal.com/Legacy:Compiler_Errors
Please learn Unreal Script. It means that the variables listed in the error don't exist (have not been declared).

Salut Skell bon ecoute moi tu es tres gentil je t'aime bien mais ces pas mon metier le C++ l'apprendre tout seul ces peine perdue alors si ta pas d'aide reelle a m'apporter ou de solution pour resoudre mon probleme a l'avenir evite de pourrir mes post!! Cordialement!
 

Skell

Active member
Mar 21, 2013
1,245
2
38
On the Internet.
Salut Skell bon ecoute moi tu es tres gentil je t'aime bien mais ces pas mon metier le C++ l'apprendre tout seul ces peine perdue alors si ta pas d'aide reelle a m'apporter ou de solution pour resoudre mon probleme a l'avenir evite de pourrir mes post!! Cordialement!
Il sera pas juste tellement plus vite pour toi si tu liras la documentation de Unreal Script sur les nombreux wiki, mais aussi plus facile pour toi a la long terme. Quand meme, je prenderai ton avis. Bonne chance avec ton code!
 

***Stuxnet***

FNG / Fresh Meat
Il sera pas juste tellement plus vite pour toi si tu liras la documentation de Unreal Script sur les nombreux wiki, mais aussi plus facile pour toi a la long terme. Quand meme, je prenderai ton avis. Bonne chance avec ton code!

Ces un code qui es deja sur tripwire forum sauf qu il date de plusieurs annees et quand j'ai essayer de le compiler pour l'ajouter a mon !RTD ba j'ai ce message je m'en doutai un peu donc ba j'ai poster ici tout simplement apres si personne veut m'aider et bien y'aura pas cette classe dans mon !RTD ces tout tu sait je suis pas la pour me prendre la tete juste me faire plaisir!!
 

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
Skell gave you the answer so please do not claim he is refusing to help. You have been given the direction on what to do. Please do not start coming to us that we should spoon feed you 100% of the work or not speak at all.
 

***Stuxnet***

FNG / Fresh Meat
Skell gave you the answer so please do not claim he is refusing to help. You have been given the direction on what to do. Please do not start coming to us that we should spoon feed you 100% of the work or not speak at all.

Np Flux! I'm not saying Skell does not help me there already my help for some things and I appreciate I'm just saying I'm a noob in coding so certain thing are very complicated to understand me.