Raised This Month: $ Target: $400
 0% 

stop the count when reached the number


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-22-2009 , 02:56   stop the count when reached the number
Reply With Quote #1

hi guys, i have this ....

PHP Code:
public forward_killid )
{
    if( 
bKillid ] > MAX_KILLS )
    {
        
bKillid ] = MAX_KILLS;
        return 
FMRES_IGNORED;
    }

    if( 
bKillid ] == MAX_KILLS )
    {
        
get_user_nameidszNamecharsmaxszName ) );
        
        
color_print0"^3%s^1 has reached the number %d!"nameMAX_KILLS );
       
bKillid ] = MAX_KILLS;
    }

    
bKillid ] += 1;

    return 
FMRES_IGNORED;

well i want the bKill[ id ] stops permanently when has reachedthe max kills number... because if i reach the maxkills number says in chat, but the count doesnt stop.
help
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
 



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 04:02.


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