View Single Post
  #10  
Old 08-26-2011, 03:47 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by salesman View Post
Not sure if it would be the cause, but you're missing a closing bracket
Iirc any improperly defined function will occur as a result of any other properly defined function within the script.

If you were to make an NPC script of:

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
//
}

function 
onPlayerEnters(){
  
//
}

function 
onPlayerChats(){
  
//
}

//as opposed to function lol(){
lol(){
  
this.chat ++;

"lol()" would occur when the NPC is created, the player enters, the player chats etc.
So the missing bracket probably is the cause here.
Reply With Quote