Raised This Month: $ Target: $400
 0% 

Non player is out of range?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 08-16-2014 , 15:48   Non player is out of range?
Reply With Quote #1

I don't get it why I get this error.

Code:
L 08/16/2014 - 11:06:15: [CSTRIKE] Non-player entity 0 out of range
L 08/16/2014 - 11:06:15: [AMXX] Displaying debug trace (plugin "trainpcw.amxx")
L 08/16/2014 - 11:06:15: [AMXX] Run time error 10: native error (native "cs_get_weapon_ammo")
L 08/16/2014 - 11:06:15: [AMXX]    [0] trainpcw.sma::eDeath (line 9999999)
PHP Code:
public eDeath()  

        new 
iKiller read_data(1); 
        new 
iVictim read_data(2);
        new 
szKillMSG[50];
        new 
weapon_id fm_find_ent_by_owner(-1weapon_weaponiKiller);
      
      
        if( 
IsPlayer(iKiller) && is_user_alive(iKiller) && Tonly[iKiller]) 
        { 
        if( 
iVictim != iKiller
        { 
            switch( 
cs_get_weapon_ammo(weapon_id) )
            {
            case 
0formatex(szKillMSGcharsmax(szKillMSG), "K");
            case 
1formatex(szKillMSGcharsmax(szKillMSG), "P");
            }
            
            
set_hudmessage(02550, -1.00.406.02.50.00.0, -1);
            
show_hudmessage(iKillerszKillMSG);
        
            if( 
is_user_alive(iKiller) )
            {
            if( 
weapon_id 
            {
                if( 
cs_get_weapon_ammo(weapon_id) == )
                {
                
cs_set_weapon_ammo(weapon_id1); 
                }
            }
            }
        } 
        } 
         
        return 
PLUGIN_HANDLED

proffs 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 12:57.


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