Quote:
Originally Posted by Raelyn
Ok, well, my script is clientside, so that means the server can't GET my clientr.level, right? I need to find some way for for the server to read my clientside variables..
|
Pass them to the server with
PHP Code:
//#CLIENTSIDE
function onEvent() {
triggerServer("gui","WeaponName","Equal",this.bar,temp.foo);
}
then on the serverside u could do something like this:
PHP Code:
function onActionServerSide(){
if (params[0] == "Equal") {
this.thing = params[1];
this.var = params[2];
}
}
then u can use this.bar and temp.foo at serverside.

but they will be named this.thing and this.var ofc
