Difference between revisions of "TGame.OnTCPMessage"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property OnTCPMessage''''' Access mode: RW Event handler type: TOnTCPMessageEvent Event handler declaration: function ('''Ip''': string; '''Port''': Word;...")
 
m
Line 1: Line 1:
  '''''property OnTCPMessage'''''
+
  '''''property OnTCPCommand'''''
 
   Access mode: RW
 
   Access mode: RW
   Event handler type: [[TOnTCPMessageEvent]]
+
   Event handler type: [[TOnTCPCommandEvent]]
 
   Event handler declaration:  
 
   Event handler declaration:  
 
     function ('''Ip''': string; '''Port''': Word; '''Text''': string): boolean
 
     function ('''Ip''': string; '''Port''': Word; '''Text''': string): boolean

Revision as of 12:22, 14 July 2015

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

Description

Event property called when a TCP admin sends a message to the server.
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