Quote:
Originally Posted by Jman9912
Is what I have right now in the weapon npc.
PHP Code:
function onActionserverside(){ if (params[0] == "place") { // temp.npc = putnpc2(player.x, player.y, "join(\"hat\");");
// with(temp.npc) { // temp.hatImage = "3";
// } temp.npc = putnpc2(player.x, player.y, Null); npc.hatImage = "3"; npc.join("hat");
} }
Is what I have right now in the class npc.
PHP Code:
function onCreated() { setshape(1, 32, 32); echo(this.hatimage);
}
|
You're using "this.hatImage" when placing it and "this.hatimage" in the class. Capitalization counts!
