Quote:
Originally Posted by salesman
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.