AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   PrintToServer in HLSW (https://forums.alliedmods.net/showthread.php?t=163529)

stas3 07-31-2011 11:07

PrintToServer in HLSW
 
Why PrintToServer not display text in the program HLSW? How to display text in HLSW?

---
Ok, ServerCommand("echo text") work, but ServerCommand("echo текст") (russian language) not work (utf-8, i know).

Lebson506th 07-31-2011 11:23

Re: PrintToServer in HLSW
 
PrintToConsole might work if you set the client to 0.

Not sure though. PrintToServer should have worked...

stas3 07-31-2011 11:40

Re: PrintToServer in HLSW
 
PHP Code:

SQL_TQuery(..., func, ..., ...);   // In the request are no errors

public func(Handle:ownerHandle:hndl, const String:error[], any:x)
{
    
// text does not display in hlsw
    
PrintToConsole(0"1");
    
PrintToServer("2");
    
ServerCommand("echo 3");



berni 07-31-2011 12:33

Re: PrintToServer in HLSW
 
PrintToServer messages are only displayed when being printed inside a command
callback. HLSW only outputs the Gamelog, not the all console messages.


All times are GMT -4. The time now is 21:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.