View Single Post
  #3  
Old 10-14-2014, 08:16 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by Struggler View Post
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");
  }

__________________
Reply With Quote