Difference between revisions of "TGame.OnTCPMessage"

From Soldat Community Wiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
   Event handler type: [[TOnTCPCommandEvent]]
 
   Event handler type: [[TOnTCPCommandEvent]]
 
   Event handler declaration:  
 
   Event handler declaration:  
     function ('''Ip''': string; '''Port''': Word; '''Text''': string): boolean
+
     procedure ('''Ip''': string; '''Port''': Word; '''Text''': string);
  
 
==Description==
 
==Description==
 
Event property called when a TCP admin sends a message to the server.<br>
 
Event property called when a TCP admin sends a message to the server.<br>
To disable the command used set the function's Result to ''TRUE''.
 
{{bug|(#590) [1.6.8b1] Setting Result to TRUE doesn't stop the command execution}}
 
  
 
[[Category:TGame]][[Category:Events]]
 
[[Category:TGame]][[Category:Events]]

Revision as of 12:04, 29 August 2016

property OnTCPCommand
 Access mode: RW
 Event handler type: TOnTCPCommandEvent
 Event handler declaration: 
   procedure (Ip: string; Port: Word; Text: string);

Description

Event property called when a TCP admin sends a message to the server.