Results 1 to 2 of 2

Thread: error C2039: 'FireBullets3' : is not a member of 'CBasePlayer'

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    Cheshire, England
    Posts
    116

    error C2039: 'FireBullets3' : is not a member of 'CBasePlayer'

    help help help, i'm so close to finishin this part of the code for my half-life mod, but when i compile it i get 1 error

    error C2039: 'FireBullets3' : is not a member of 'CBasePlayer'

    how do i declare this, or add it to my cbaseplayer?

    i think this is where it needs to be added but no idea how and what

    ===
    player.h
    ===

    class CBasePlayer : public CBaseMonster
    {
    public:
    int random_seed; // See that is shared between client & server for shared weapons code

    int m_iPlayerSound;// the index of the sound list slot reserved for this player
    int m_iTargetVolume;// ideal sound volume.
    int m_iWeaponVolume;// how loud the player's weapon is right now.
    int m_iExtraSoundTypes;// additional classification for this weapon's sound
    int m_iWeaponFlash;// brightness of the weapon flash
    float m_flStopExtraSoundTime;

    float m_flFlashLightTime; // Time until next battery draw/Recharge
    int m_iFlashBattery; // Flashlight Battery Draw

    float m_flAccuracy;
    float m_flLastFire;
    short int m_iShotsFired;
    short int m_iGlock18ShotsFired;
    float m_flGlock18Shoot;

    int m_afButtonLast;
    int m_afButtonPressed;
    int m_afButtonReleased;

    edict_t *m_pentSndLast; // last sound entity to modify player room type
    float m_flSndRoomtype; // last roomtype set by sound entity
    float m_flSndRange; // dist from player to sound entity

    float m_flFallVelocity;

    int m_rgItems[MAX_ITEMS];
    int m_fKnownItem; // True when a new item needs to be added
    int m_fNewAmmo; // True when a new item has been added

    unsigned int m_afPhysicsFlags; // physics flags - set when 'normal' physics should be revisited or overriden
    float m_fNextSuicideTime; // the time after which the player can next use the suicide command

    ===

    any help will be extremely appreciated, i may not of added somethin to my question ie a line fo code that u need to know before u can help, so just ask and i'll post what ever here

    thx
    --- Counter-Terrorists Win ---

    http://manix.pax3k.co.uk
    www.manix-creations.net

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Just add it to all the other member declarations like
    int m_iPlayerSound;
    So it would look like this:
    Type FireBullets3;

    Type is the type of FireBullets3
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width