Raised This Month: $ Target: $400
 0% 

Player out of range (0) [ERROR]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LeeanAndNeka
Senior Member
Join Date: Feb 2012
Location: Argentina ♥
Old 01-05-2013 , 02:40   Re: Player out of range (0) [ERROR]
Reply With Quote #10

PHP Code:
#include < amxmodx >

#define is_valid_player(%1) (1 <= %1 <= g_maxplayers)

new g_maxplayers

public plugin_init() {

    
g_maxplayers get_players()
}

public 
roundstart()
{
    static 
iPlayers32 ], iNumi;
    
get_playersiPlayersiNum );
    
    for( 
0iNumi++ )
    {
        if( 
is_valid_playeriPlayers] ) )
        {
            
menu_displayiPlayers], g_Menu);
            
strip_user_weapons(iPlayers[i]);
            
give_itemiPlayers[i], "weapon_knife" )
        }
    }

LeeanAndNeka is offline
Send a message via MSN to LeeanAndNeka Send a message via Skype™ to LeeanAndNeka
 



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


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