Raised This Month: $ Target: $400
 0% 

Player out of range (0) [ERROR]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 01-04-2013 , 15:03   Player out of range (0) [ERROR]
Reply With Quote #1

Code:
L 01/04/2013 - 21:42:22: Start of error session.
L 01/04/2013 - 21:42:22: Info (map "ze_area51_lg") (file "addons/amxmodx/logs/error_20130104.log")
L 01/04/2013 - 21:42:22: [FUN] Player out of range (0)
L 01/04/2013 - 21:42:22: [AMXX] Run time error 10 (plugin "weaponmen.amxx") (native "give_item") - debug not enabled!
L 01/04/2013 - 21:42:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/04/2013 - 22:03:22: Start of error session.
L 01/04/2013 - 22:03:22: Info (map "ze_jurassickpark3_lg") (file "addons/amxmodx/logs/error_20130104.log")
L 01/04/2013 - 22:03:22: [FUN] Player out of range (0)
L 01/04/2013 - 22:03:22: [AMXX] Displaying debug trace (plugin "weaponmen.amxx")
L 01/04/2013 - 22:03:22: [AMXX] Run time error 10: native error (native "give_item")
L 01/04/2013 - 22:03:22: [AMXX]    [0] gunmenu.sma::roundstart (line 39)
PHP Code:
register_event"HLTV""roundstart""a""1=0""2=0" );

// stuff

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

Why is Player out of range (0) ?

Edit:

I have already searched for the problem but checking if is_user_connected didn't work.

Last edited by bLacK-bLooD; 01-04-2013 at 15:18.
bLacK-bLooD is offline
 



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