| Anonymous | Login | 2025-12-05 09:20 UTC | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000590 | Soldat Dedicated Server | Scripting Core | public | 2014-10-09 17:02 | 2014-10-10 11:06 | ||||
| Reporter | Mighty | ||||||||
| Assigned To | ExHunter | ||||||||
| Priority | high | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | x86 | OS | Windows | OS Version | XP SP3 | ||||
| Product Version | 2.7.8b1 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0000590: OnTCPMessage's Result doesn't change server's behaviour. | ||||||||
| Description | OnTCPMessage's Result doesn't stop the commands from execution regardless of it's value. | ||||||||
| Steps To Reproduce | function TCPMessage(Ip: string; Port: Word; Text: string): boolean; begin WriteLn('TCPMessage('+Ip+','+inttostr(Port)+','+Text+')'); Result := TRUE; //Result := FALSE; end; begin Game.OnTCPMessage := @TCPMessage; end. | ||||||||
| Tags | No tags attached. | ||||||||
| John | |||||||||
| Attached Files | |||||||||
Notes |
|
|
(0002337) ExHunter (developer) 2014-10-09 17:28 |
Oh this was never supposed to be a function. My bad. I will look tomorrow what I could do. |
|
(0002338) Mighty (developer) 2014-10-10 05:44 |
Please make it a function though, so we can, for example, replace default /say command with something neat. |
|
(0002340) ExHunter (developer) 2014-10-10 11:06 |
Made it a procedure. Added TGame.OnTCPCommand of type TOnTCPCommandEvent TOnTCPCommandEvent = function(Ip: string; Port: Word; Command: string): Boolean; |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2014-10-09 17:02 | Mighty | New Issue | |
| 2014-10-09 17:28 | ExHunter | Note Added: 0002337 | |
| 2014-10-10 05:44 | Mighty | Note Added: 0002338 | |
| 2014-10-10 11:06 | ExHunter | Note Added: 0002339 | |
| 2014-10-10 11:06 | ExHunter | Note Deleted: 0002339 | |
| 2014-10-10 11:06 | ExHunter | Note Added: 0002340 | |
| 2014-10-10 11:06 | ExHunter | Status | new => resolved |
| 2014-10-10 11:06 | ExHunter | Resolution | open => fixed |
| 2014-10-10 11:06 | ExHunter | Assigned To | => ExHunter |
| Copyright © 2000 - 2025 MantisBT Team |