View Single Post
  #2  
Old 09-26-2011, 04:49 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Try debugging it with echo's I.e:

PHP Code:
function onActionServerSide() {
  echo(
"trigger received from " SPC player.account);
  echo(
"trigger params: " params);
  if (
params[0] == "show") { 
    for (
temp.plallplayers) { 
      if (
pl.level.name == nil
        continue;
      echo(
"triggering client " pl.account);
      
pl.triggerclient("gui"this.name"disp"); 
    } 
  } 
  if (
params[0] == "sendpm") { 
    
findplayer("pig132").sendPM(player.account " clicked!"); 
  } 

//#CLIENTSIDE 
function onPlayerChats() {
  echo(
"player chatted " player.chat
  
if (player.chat == "/test") { // You only had one = in your script before, should be double.
    
echo("triggering server");
    
triggerserver("gui"this.name"show"); 
  } 


function 
onActionClientSide() {
  echo(
"Trigger received: " params);
  if (
params[0] == "disp") {
    echo(
"Displaying menu!");
    
CreateMenu(); 
  } 

echo's on the client-side will appear in your console (F2).
echo's on the server-side will appear on RC.

You'll be able to pinpoint exactly your script stops flowing this way.
__________________
Quote:
Reply With Quote