This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

host_error: WriteDest_parm: not a client


Post New Thread Reply   
 
Thread Tools Display Modes
Drak
Veteran Member
Join Date: Jul 2005
Old 01-06-2008 , 19:38   Re: host_error: WriteDest_parm: not a client
Reply With Quote #11

MSG_ON and MSG_ALL are reliable. Meaning, if the message doesn't reach the client, the server is possible to crash. Or the client will be dropped. For everything else, they aren't really used. But besides "MSG_BROADCAST" and "MSG_ONE_UNRELIABLE" I don't know about the others.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
taheri6
Member
Join Date: Mar 2006
Old 01-06-2008 , 20:42   Re: host_error: WriteDest_parm: not a client
Reply With Quote #12

So if I do a MSG_ALL, how can I stop it from sending to bad users? I know I can wrap the MSG_ONE in some clausals, but the MSG_ALL isnt in a loop or anything where i can interogate each client the MSG_ALL is sent to.

Does that make sense? How would I check that?
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 01-06-2008 , 20:49   Re: host_error: WriteDest_parm: not a client
Reply With Quote #13

Quote:
Originally Posted by taheri6 View Post
So if I do a MSG_ALL, how can I stop it from sending to bad users? I know I can wrap the MSG_ONE in some clausals, but the MSG_ALL isnt in a loop or anything where i can interogate each client the MSG_ALL is sent to.

Does that make sense? How would I check that?
A simple check of "is_user_connected()" is fine. Even if it's a bot, and a message is sent to it. It wouldn't crash. If anything, you can use "MSG_ONE_UNRELIANLE"
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
taheri6
Member
Join Date: Mar 2006
Old 01-06-2008 , 21:10   Re: host_error: WriteDest_parm: not a client
Reply With Quote #14

Are you saying I can do this?

PHP Code:
if( is_user_connectedid ) )
{
     
message_beginMSG_ALLSVC_TEMPENTITY );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord); // z axis for sprite
    
write_shortblast ); // blast sprite
    
write_short);
    
message_end( );

I am already doing something similar for MSG_ONE, I'm just not sure how to handle the broadcasts, as well as client_print( 0, ... ) since they are sent to everyone, and for all I know that could be the cause of the crash.
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 01-07-2008 , 00:44   Re: host_error: WriteDest_parm: not a client
Reply With Quote #15

Quote:
Originally Posted by taheri6 View Post
Are you saying I can do this?

PHP Code:
if( is_user_connectedid ) )
{
     
message_beginMSG_ALLSVC_TEMPENTITY );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord); // z axis for sprite
    
write_shortblast ); // blast sprite
    
write_short);
    
message_end( );

I am already doing something similar for MSG_ONE, I'm just not sure how to handle the broadcasts, as well as client_print( 0, ... ) since they are sent to everyone, and for all I know that could be the cause of the crash.
You shouldn't need to handle anything.. It's rare when a client doesn't get a reliable message, and the server crashes from it.. "client_print()" also already handles this.. So.. There's no need for that.. And.. You are sending that message to everyone.. So.. Why check "is_user_connected()" when you're sending it to everyone.. not a single player.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
taheri6
Member
Join Date: Mar 2006
Old 01-07-2008 , 00:46   Re: host_error: WriteDest_parm: not a client
Reply With Quote #16

becuase I had asked about avoiding this server crash error from these reliable messages - and while it is rare I would like to limit it as much as possible.

But your response:
Quote:
A simple check of "is_user_connected()" is fine. Even if it's a bot, and a message is sent to it. It wouldn't crash. If anything, you can use "MSG_ONE_UNRELIANLE"
to my question regarding MSG_ALL didnt make much sense to me which is why I asked that last question. If I misunderstood your response, I appologize.
__________________
http://www.yaur.com -=[Yaur]=- Clan Website
taheri6 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 01-07-2008 , 05:27   Re: host_error: WriteDest_parm: not a client
Reply With Quote #17

Oops. I didn't compleately read your last question. Also, you said you don't know how to handle the broadcast. I don't know if you meant "MSG_BROADCAST" or.. Litterly broadcasting messages between all the players. But, since 'MSG_BROADCAST' is un-reliable, you don't need to do anything. If you're wanting to use "MSG_ALL" and want to check the clients, before you send the message. Just loop through all the players connected.
Code:
public SomeFunc() {     new iPlayers[32],iNum,player     get_players(iPlayers,iNum)     for(new i;i<iNum;i++)     {         player = iPlayers[i]                 if(is_user_connected(player))         {             // Do Stuff         }     } }
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
imtiyazq007
New Member
Join Date: Dec 2008
Location: mumbai
Old 12-25-2008 , 14:57   Re: host_error: WriteDest_parm: not a client
Reply With Quote #18

hey guysss i dnt have heroes or gun gmare added in my server but still d error Host_Error: WriteDest_Parm: not a client tiss cmesss..so wat shud i doo.... i have amx mod x 18.0 nd plugins
; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer


; Custom - Add 3rd party plugins here
Hook.amxx
timer16.amxx
kit_on_body.amxx
mapchooser4.amxx
looting.amxx
grenade_enhancer.amxx
head_splash.amxx
hpk.amxx
grenade_mod.amxx
grenade_trail.amxx
deathtype_effects.amxx

nd still d error cmess.......so wat shud i remove or do i dun noeee help mee plzzzz guysss god bless yu
imtiyazq007 is offline
Send a message via Yahoo to imtiyazq007
imtiyazq007
New Member
Join Date: Dec 2008
Location: mumbai
Old 12-25-2008 , 14:59   Re: host_error: WriteDest_parm: not a client
Reply With Quote #19

well to be honest i really dun noeee wat is gun gamer guyss help mee plzzzzzzzz
imtiyazq007 is offline
Send a message via Yahoo to imtiyazq007
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-08-2009 , 15:47   Re: host_error: WriteDest_parm: not a client
Reply With Quote #20

btw, should it be
if(is_user_connected(player))

or
if( !is_user_connected(player) )
?
Owyn is offline
Send a message via ICQ to Owyn
Reply



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 18:45.


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