View Single Post
  #4  
Old 07-21-2012, 02:40 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
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
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote