Raised This Month: $ Target: $400
 0% 

message_begin with an invalid message id


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
padilha007
Senior Member
Join Date: Jul 2008
Old 04-08-2011 , 23:00   Re: message_begin with an invalid message id
Reply With Quote #2

You need set an msgid to g_damage:

PHP Code:
public plugin_init() {
    
// Code...
    
g_damage get_user_msgid("Damage");
    
// Code...

And:

Check if the user is connected to prevent any invalid msg:
PHP Code:
    if(is_user_connected(kIndex) && is_user_alive(kIndex) && g_burning[kIndex]) 
For some reason MSG_ONE_UNRELIABLE is better to send to an especific player. I do not remember x)
PHP Code:
    message_begin(MSG_ONE_UNRELIABLEg_damage, {0,0,0}, kIndex
__________________


Last edited by padilha007; 04-08-2011 at 23:09.
padilha007 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:12.


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