Raised This Month: $ Target: $400
 0% 

[Help] Message_Begin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sbornes
SourceMod Donor
Join Date: Jan 2010
Old 04-05-2011 , 16:51   [Help] Message_Begin
Reply With Quote #1

PHP Code:
public ShowHud(id)
{
    
set_task(0.1"ShowHud"id)        
    if( !
is_user_aliveid ))    
        return 
PLUGIN_CONTINUE

    
{
        
        new 
sText[256];
        new 
next_level PlayerLevel[id]
        new 
RemainingXP LEVELSnext_level ] - PlayerXPid ]
        
        
formatexsTextcharsmaxsText ),"[ Level: %i ] [ XP: %i/%i ( %i ) ] [ Class: %s ]",PlayerLevel[id], PlayerXP[id], LEVELS[next_level], RemainingXPCLASSES[PlayerClass[id]]);
        
        
message_begin(MSG_ONEget_user_msgid("StatusText"), {000}, id);
        
write_byte(id);
        
write_string(sText);
        
message_end();  
    
    }


    return 
PLUGIN_CONTINUE

Can someone tell me why that gives MSG_ONE or MSG_ONE UNRELIABLE with no target entity hud message,

Last edited by sbornes; 04-05-2011 at 17:20. Reason: fixed up mistake
sbornes is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-05-2011 , 17:16   Re: [Help] Message_Begin
Reply With Quote #2

It doesn't. You are using MSG_ALL so the error cannot come from there.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
sbornes
SourceMod Donor
Join Date: Jan 2010
Old 04-05-2011 , 17:19   Re: [Help] Message_Begin
Reply With Quote #3

oh oops it was a MSG_ONE, was changing it to see what would happen, forgot to change back.
sbornes is offline
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 20:11.


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