View Single Post
  #1  
Old 01-23-2007, 04:06 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
triggering beetween wnpcs

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)
__________________

Last edited by Chompy; 01-23-2007 at 08:26 PM.. Reason: removed comma
Reply With Quote