Difference between revisions of "TGame.OnTCPMessage"

From Soldat Community Wiki
Jump to: navigation, search
m
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  '''''property OnTCPCommand'''''
+
  '''''property OnTCPMessage'''''
 
   Access mode: RW
 
   Access mode: RW
   Event handler type: [[TOnTCPCommandEvent]]
+
   Event handler type: [[TOnTCPMessageEvent]]
   Event handler declaration:  
+
   Event handler declaration: procedure ('''Ip''': string; '''Port''': Word; '''Text''': string);
    function ('''Ip''': string; '''Port''': Word; '''Text''': string): boolean
 
  
 
==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]]

Latest revision as of 19:00, 9 November 2017

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

Description

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