Raised This Month: $ Target: $400
 0% 

[Help] Message_Begin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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