View Single Post
  #2  
Old 10-07-2011, 10:58 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I've replicated this. Looks like it's not being saved in the player's attributes (not shown in "/open account", even after reconnecting).

Testing code:

PHP Code:
function onCreated() {
  
temp.pl findPlayer("YOUR_ACCOUNT");
  
  
temp.pl.clientr.test = {{"one""two"}};
  
temp.pl.clientr.test[0][1] = "three";
  
  echo(
"server: " temp.pl.clientr.test);
  
  
temp.pl.addWeapon(this.name);
  
temp.pl.triggerClient("gui"this.name"check");
}

function 
onActionServerSide(temp.cmdtemp.data) {
  if (
temp.cmd == "returnCheck") {
    echo(
"client: " temp.data);
  }
}

//#CLIENTSIDE
function onActionClientSide(temp.cmd) {
  if (
temp.cmd == "check") {
    
triggerServer("gui"this.name"returnCheck"player.clientr.test);
  }

Output on Ol' West:
PHP Code:
Weapon/GUI-script wtf added/updated by cbk1994
server
"one,three",
client"one,two"
__________________
Reply With Quote