
07-21-2012, 03:00 AM
|
|
Worlds Connected Dev
|
Join Date: Jun 2012
Posts: 18
|
|
Quote:
Originally Posted by BlueMelon
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
|
|
__________________
|
|
|
|