Raised This Month: $ Target: $400
 0% 

Host_Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 08-14-2012 , 09:06   Host_Error
Reply With Quote #1

What could couse this problem ? Host_Error: WriteDest_Parm: not a client
DoviuX is offline
Send a message via Skype™ to DoviuX
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-14-2012 , 09:13   Re: Host_Error
Reply With Quote #2

Non-Steam?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 08-14-2012 , 09:14   Re: Host_Error
Reply With Quote #3

Solution at the bottom

Last edited by DoviuX; 08-14-2012 at 09:35.
DoviuX is offline
Send a message via Skype™ to DoviuX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-14-2012 , 09:16   Re: Host_Error
Reply With Quote #4

Make sure you check player is connected [and alive] before sending game message.
__________________
Arkshine is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 08-14-2012 , 09:26   Re: Host_Error
Reply With Quote #5

PHP Code:
public advert_author( ) {
        
color_print0"%s %s by %s"PREFIXPLUGINAUTHOR );
        
color_print0"%s If you wan't to turn off auto weapons type !g/auto_off!y."PREFIX );

To this and works -->

PHP Code:
    
public advert_author( ) {
    new 
players32 ], inumi;
    
get_playersplayersinum )
    for( 
0inumi++ ) {
        if( 
is_user_connected) ) {
            
color_printi"%s %s by %s"PREFIXPLUGINAUTHOR );
            
color_printi"%s If you wan't to turn off auto weapons type !g/auto_off!y."PREFIX );
        }
    }


Last edited by DoviuX; 08-14-2012 at 09:35.
DoviuX is offline
Send a message via Skype™ to DoviuX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-14-2012 , 09:47   Re: Host_Error
Reply With Quote #6

if( is_user_connected( i ) ) { is useless, it's done already with get_players().
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-14-2012 , 09:50   Re: Host_Error
Reply With Quote #7

You don't use get_players result properly, please search on forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 08-14-2012 , 10:06   Re: Host_Error
Reply With Quote #8

Like this ?

PHP Code:
public advert_author( ) {
    new 
players32 ], inumi;
    
get_playersplayersinum"c" 
    for( 
0inumi++ ) {
        
color_printplayers], "%s %s by %s"PREFIXPLUGINAUTHOR );
        
color_printplayers], "%s If you wan't to turn off auto weapons type !g/auto_off!y."PREFIX );
    }


Last edited by DoviuX; 08-14-2012 at 10:08.
DoviuX is offline
Send a message via Skype™ to DoviuX
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-14-2012 , 10:08   Re: Host_Error
Reply With Quote #9

Yes, but don't re-index array, read wiki plugins optimization part.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 05:44.


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