Raised This Month: $51 Target: $400
 12% 

PrintToServer in HLSW


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stas3
Junior Member
Join Date: Jul 2011
Location: ukraine
Old 07-31-2011 , 11:07   PrintToServer in HLSW
Reply With Quote #1

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).
__________________
My English is bad

Last edited by stas3; 07-31-2011 at 11:14.
stas3 is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 07-31-2011 , 11:23   Re: PrintToServer in HLSW
Reply With Quote #2

PrintToConsole might work if you set the client to 0.

Not sure though. PrintToServer should have worked...
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
stas3
Junior Member
Join Date: Jul 2011
Location: ukraine
Old 07-31-2011 , 11:40   Re: PrintToServer in HLSW
Reply With Quote #3

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");

__________________
My English is bad
stas3 is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-31-2011 , 12:33   Re: PrintToServer in HLSW
Reply With Quote #4

PrintToServer messages are only displayed when being printed inside a command
callback. HLSW only outputs the Gamelog, not the all console messages.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:46.


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