Thread: Urgent Problem

Results 1 to 3 of 3
  1. #1
    Lemon30's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    66
    Reputation
    10
    Thanks
    10
    My Mood
    Devilish

    Urgent Problem

    I'm trying to make a skill system for my Hexer Mod v2.

    I added,
    Code:
    self.auxlvl = 0;
    self thread zhex\mp\_AuxSkills::aux();
    into onplayerConnect();

    and
    Code:
    level.subMenuNames[2][1] = "[1]Warmth [500]";
    level.subMenuFunctions[2][1] = :: buyWarmth;
    into Nukem's menu

    This code should make player's auxlvl 10 if it was 0,
    Code:
    buyWarmth()
    {
        self freezeControls(false);
        
        self thread exitMenu();
        self notify ( "exitMenu" );
    
            self VisionSetNakedForPlayer( getDvar("mapname"), .1 );
    
        if ((self.TotalExperiencePoints >= 500) && (self.auxlvl == 0))
        {
            self.auxlvl = 10;
            
            self.SkillsBoughtCost += 500;
        }
        
        else
        {
            notifyData = spawnstruct();
            notifyData.titleText = "Not enough experience points";
            self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
        }
    }
    And this code should do something if players auxlvl is 10,

    Code:
    aux()
    {
        if(self.auxlvl == 10){
            self thread .......;
        }
    }
    But it's not working. I'm new to coding please tell me what am I doing wrong.

  2. #2
    bomb21's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Unknown
    Posts
    57
    Reputation
    10
    Thanks
    22
    Code:
    self.auxlvl = 0;
    self thread zhex\mp\_AuxSkills::aux();
    to

    Code:
    player.auxlvl = 0;
    player thread zhex\mp\_AuxSkills::aux();

  3. #3
    Lemon30's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    66
    Reputation
    10
    Thanks
    10
    My Mood
    Devilish
    Code:
    player.auxlvl = 0;
    player thread zhex\mp\_AuxSkills::aux();
    [/QUOTE]
    gave uninitialized variable 'player' error.

    i used
    Code:
    foreach ( player in level.players ){
    player.atklvl = 0;
    player.deflvl = 0;
    player.auxlvl = 0;
    
    player thread zhex\mp\_AtkSkills::atk();
    player thread zhex\mp\_DefSkills::def();
    player thread zhex\mp\_AuxSkills::aux();}
    game started but; skills still don't work

Similar Threads

  1. Crosshair problem. URGENT
    By opensurce in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 02-07-2011, 12:28 PM
  2. URGENT FOR ALL WITH MSVCR100.DLL PROBLEM
    By topblast in forum Combat Arms Discussions
    Replies: 36
    Last Post: 08-05-2010, 08:03 PM
  3. CrossFire Hack Problems!!! {Urgent}
    By iReloadFast in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 07-13-2009, 04:45 PM
  4. HACKS URGENT PROBLEM PLS READ
    By tunexf in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 04-20-2009, 05:10 AM
  5. WPE problem...
    By styx23 in forum General Game Hacking
    Replies: 8
    Last Post: 01-18-2006, 08:51 PM