Raised This Month: $ Target: $400
 0% 

Help with write_string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Yoghurt
New Member
Join Date: Jul 2004
Old 07-11-2004 , 17:08   Help with write_string
Reply With Quote #1

Hallo
I have a problem with the function write_string.
For some players the text are in the middle of there screen, and for some in the bottom.
What can the problem be?

The code:
message_begin(MSG_ALL,gmsgStatusText,{0,0,0})
write_byte(0)
write_string(final_status)
message_end()

Sorry for my bad english.
Yoghurt is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-11-2004 , 17:11  
Reply With Quote #2

do u have the rite #includes ?
show us the full plugin on attachment

also look at function:
http://www.amxmodx.org/funcwiki.php?go=func&id=271
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-11-2004 , 21:45  
Reply With Quote #3

aha, gmsgStatusText tells me that you are trying to create a Status Text message.

The position of this is actually determined by the player via the variable hud_centerid.

this controls where player target's names are displayed in steam.

In CS1.5, there were 2 different IDS that you could use for a Status Text, one for the center of the screen, and one for the bottom left. Steam, however, only has 1 id, and therefore broke many scripts that took advantages of it (ATAC, WAR3MOD, etc).

The only way to get your message into the position you want is by forcing a client command, which i highly suggest you do not, only because player's set these values for a reason.. customization.

here's the code to do it though, if you feel the need.

Code:
// This will center the text client_cmd( id, "hud_centerid 1" ); // This will put the text in bottom left client_cmd( id, "hud_centerid 0" );

Hope this helps
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
Reply


Thread Tools
Display Modes

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 14:39.


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