Raised This Month: $32 Target: $400
 8% 

Host_Error: WriteDest_Parm: not a client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DahVid
Senior Member
Join Date: Jun 2005
Old 08-26-2005 , 22:47   Host_Error: WriteDest_Parm: not a client
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() {     register_plugin("Hit notifications","0.1","DahVid")     register_event("Damage", "got_hit", "b", "2!0")     register_cvar("hn_redflash","1")     register_cvar("hn_shake","1") } public got_hit(id) {     if(is_user_alive(id) && is_user_connected(id)) {         if(get_cvar_num("hn_redflash")) {             message_begin(MSG_ONE,get_user_msgid("ScreenFade"))             write_short(1)             write_short(1)             write_short(1)             write_byte(255)             write_byte(0)             write_byte(0)             write_byte(80)             message_end()         }         if(get_cvar_num("hn_shake")) {             message_begin(MSG_ONE,get_user_msgid("ScreenShake"))             write_short(10)             write_short(10)             write_short(10)             message_end()         }     } }
DahVid is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-26-2005 , 22:49  
Reply With Quote #2

You send it to MSG_ONE but don't specify the one player to send it to.

Code:
message_begin(MSG_ONE,message,{0,0,0},player);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 01:32.


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