Quote:
Originally Posted by i8bit
PHP Code:
function this(){
if (check something){
function that();
}
}
|
PHP Code:
function onHello() {
temp.toAvoid = "somePlayer";
if (player.account != temp.toAvoid) {
sendGreeting();
}
}
function sendGreeting() {
this.chat = "HEYYY BUDDY WAZUP";
echo("MY BUDDY IS HERE WOOO");
}
do you mean something like that? there is no need for having a function inside a function as you can always just trigger another function