View Single Post
  #2  
Old 09-02-2017, 03:51 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
its pretty secure, you can't read client set attrs on serverside

example:
PHP Code:
function onCreated() { 
  
this.attr[2] = "test";
  echo(
this.attr[2]);

example2
PHP Code:
function onActionServerSide(temp.cmd) {
  switch(
temp.cmd) {
    case 
"testEcho";
      echo(
this.attr[3]); //wont echo anything
    
break;
  }
}
//#CLIENTSIDE
function onCreated() {
  
this.attr[3] = "test";
  
triggerserver("gui"this.name"testEcho");

However you can read server set Attrs on Client
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote