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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-08-2009 , 16:07   Re: host_error: WriteDest_parm: not a client
Reply With Quote #21

From #17, if you use get_players to retrieve a player list, use is_user_connected is just useless.

For other, it's obviously :

if( is_user_connected( id ) )
execute_code_on_id( id )


other way :

if( !is_user_connected( id ) )
return

execute_code_on_id( id )




Writing this i just realized that you may have not understood what the "!" stands for, basically it's the contruary of what you put after, so !0 == 1 and !1 == 0.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-08-2009 , 17:20   Re: host_error: WriteDest_parm: not a client
Reply With Quote #22

so if i write
if( !is_user_connected( id ) )
{
execute_code_on_id( id )
}

it won't make any sense and won't execute code?
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-08-2009 , 19:01   Re: host_error: WriteDest_parm: not a client
Reply With Quote #23

What you put means you want to execute code on a player that isn't connected.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-25-2009 , 15:40   Re: host_error: WriteDest_parm: not a client
Reply With Quote #24

so how do i check users for MSG_ALL ?

for this stock:
Code:
stock Create_DeathMsg_CS(killer_id,victim_id,headshot,weaponname[]){

    message_begin(MSG_ALL,gmsgDeathMsg)
    write_byte(killer_id)
    write_byte(victim_id)
    write_byte(headshot)
    write_string(weaponname)
    message_end()
}
help me make a check pls ^^
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-25-2009 , 15:57   Re: host_error: WriteDest_parm: not a client
Reply With Quote #25

A check for what?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-25-2009 , 16:00   Re: host_error: WriteDest_parm: not a client
Reply With Quote #26

MSG_All to MSG_BROADCAST
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-25-2009 , 16:02   Re: host_error: WriteDest_parm: not a client
Reply With Quote #27

Quote:
Originally Posted by Exolent[jNr] View Post
A check for what?
is_user_connected
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-25-2009 , 16:49   Re: host_error: WriteDest_parm: not a client
Reply With Quote #28

When using MSG_ALL and MSG_BROADCAST, it automatically sends to the players that are connected. There is no check to make.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-25-2009 , 06:51   Re: host_error: WriteDest_parm: not a client
Reply With Quote #29

yhm... i get this error few times a day or less and i checked all plugins with MSG_ONE etc to have is_user_connected check but still happens )= what else can cause this?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-01-2009 , 04:19   Re: host_error: WriteDest_parm: not a client
Reply With Quote #30

Quote:
Originally Posted by taheri6 View Post
What types of messages do I need to do that with?

PHP Code:
#define MSG_BROADCAST        0    // unreliable to all
#define MSG_ONE            1    // reliable to one (msg_entity)
#define MSG_ALL            2    // reliable to all
#define MSG_INIT                     3    // write to the init string
#define MSG_PVS            4    // Ents in PVS of org
#define MSG_PAS            5    // Ents in PAS of org
#define MSG_PVS_R        6    // Reliable to PVS
#define MSG_PAS_R        7    // Reliable to PAS
#define MSG_ONE_UNRELIABLE    8    // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
#define MSG_SPEC        9    // Sends to all spectator proxies 
Would it only be needed arround MSG_ONE type messages?

you said you could use MSG_ONE_UNRELIABLE instead of MSG_ONE, but will be any difference in msg effect or not? in description it also said "could be dropped" what? O_o
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
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:40.


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