View Single Post
  #9  
Old 02-22-2010, 02:29 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Jman9912 View Post
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.xplayer.yNull);
npc.hatImage "3";
npc.join("hat");  

  }

Is what I have right now in the class npc.

PHP Code:
function onCreated() {
  
setshape(13232);
  echo(
this.hatimage);


You're using "this.hatImage" when placing it and "this.hatimage" in the class. Capitalization counts!
__________________
Reply With Quote