Hooking into CrackShot #164


  • New
  • Defect
Open
Assigned to shampaggon
  • _ForgeUser11035553 created this issue Apr 3, 2014

    Hello, today I have been trying to hook into CrackShot and give someone a gun.

    At the top of my class I put:
      CSUtility csu;

    and I made a method:

            public void giveGuns(Player p, int amnt) {
            if (p != null)
                    csu.giveWeapon(p, "MP7", 1);
        }

    However it is throwing a NullPointerException. The gun MP7 is there, so that can't be the issue. Am I doing anything wrong here?

  • _ForgeUser11035553 added the tags New Defect Apr 3, 2014
  • Shampaggon posted a comment Apr 4, 2014

    You've declared the variable 'csu', but you have not assigned any value to it.


    Edited Apr 4, 2014

To post a comment, please login or register a new account.