Thread: Need help
View Single Post
  #9  
Old 08-28-2003, 01:30 PM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
Re: Need help

Quote:
Originally posted by killaxjw_p2p
What am i doing wrong???im trying to make it if a restraunt member says /sub a sub will appear and the other player can touch the sub and it will dissapear.

NPC Code:

// Food Script created by ...
if(created){
setstring this.foodtype,sub; }

if(playerchats&&strequals(#c,/#s(this.foodtype))){
putnpc2 playerx+.5+vecx(playerdir)*2,playery+1+vecy(player dir)*2,{
if(created){
setimg sub.png;
}
if(playertouchsme){
playerhearts=playerfullhearts;
}
}
}

putnpc2 doesnt work offline, if thats where you trying it.
Quote:
missing a ; at the end of the second to the last line.. putnpc2 is still a command, don't hate because it uses { }'s ;D
Yes, but thats not the reason why its not working.
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote