Well, I've been experimenting, but I can't get something like this to work..
// -Master
PHP Code:
//#CLIENTSIDE
function onCreated()
{
this.wnpc = "Chompy/Test";
triggerserver( "gui", this.wnpc, "actiontest", "foo");
}
// Chompy/Test
PHP Code:
function onActionServerside()
{
if ( params[ 0] == "actiontest")
echo( params[ 1]);
}
This isn't working for me, anyone have any ideas?
I dunno if I am doing anything wrong..
(Doesn't output the echo in rc chat)