Quote:
Originally Posted by Struggler
Ah, now it shows up when I changed it to 1. So how would I set a clientr variable to the number 0 then? Or should I just get it to detect that there's none and have a default conditional to go to if that's the case?
|
Depends, I'm still trying to figure out what your script is supposed to accomplish.
PHP Code:
function onActionServerside(){
if (params[0] == "updatevars"){
player.clientr.treescut = true;
echo(player.clientr.treescut);
}
}
//#CLIENTSIDE
function onCreated(){
if (player.clientr.treescut == false) { //Your variable will have to be false to trigger serverside again
triggerserver("gui", this.name, "updatevars");
}
}