Raised This Month: $ Target: $400
 0% 

[HELP] Host_Error: WriteDest_Parm: not a client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-03-2013 , 10:06   [HELP] Host_Error: WriteDest_Parm: not a client
Reply With Quote #1

PHP Code:
client_printc(index, const text[], any:...)
{
    new 
szMsg[128];
    
vformat(szMsgsizeof(szMsg) - 1text3);

    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04");
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01");
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03");

    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _index);
    
write_byte(index);
    
write_string(szMsg);
    
message_end();


players connected to the server is giving this error after a few seconds.

EDIT:
Error in this code
__________________

Last edited by Erdener; 02-16-2013 at 05:09.
Erdener is offline
Old 02-14-2013, 19:22
Erdener
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 02-16-2013 , 04:23   Re: [HELP] Host_Error: WriteDest_Parm: not a client
Reply With Quote #2

replace
PHP Code:
client_printc(index, const text[], any:...)
{
    new 
szMsg[128];
    
vformat(szMsgsizeof(szMsg) - 1text3);

    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04");
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01");
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03");

    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _index);
    
write_byte(index);
    
write_string(szMsg);
    
message_end();

to
PHP Code:
// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-16-2013 , 05:10   Re: [HELP] Host_Error: WriteDest_Parm: not a client
Reply With Quote #3

Ok, thnx dias
__________________
Erdener is offline
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 20:37.


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