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.