View Single Post
  #5  
Old 07-21-2012, 03:00 AM
Fatel Fatel is offline
Worlds Connected Dev
Join Date: Jun 2012
Posts: 18
Fatel is an unknown quantity at this point
Quote:
Originally Posted by BlueMelon View Post
PHP Code:

function onActionServerSide(cmd,player_name,report_reason){
  if(
cmd == "report"){
    echo(
"REPORT: Player name: "@player_name@" Reason: "@report_reason@" from: "@player.account);
  }
}


//#CLIENTSIDE

// ... GUI Code

function Report_Button1.onAction(){
  
temp.player_name Report_Text1.text;
  
temp.reason Report_Text2.text;
  
triggerserver("gui",this.name,"report",temp.player_name,temp.reason);

Here is a quick example on how to trigger serverside to echo.
I suggest you follow proper naming conventions when naming your GUI controls.
http://forums.graalonline.com/forums...ad.php?t=85600
RC sends this message:
Quote:
REPORT: Player name: Player name: Reason: Reason: from: Graal809560
__________________
Reply With Quote