This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
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?
You've declared the variable 'csu', but you have not assigned any value to it.
To post a comment, please login or register a new account.