Raised This Month: $51 Target: $400
 12% 

[ZP]Invalid Player(0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 11-08-2016 , 18:14   [ZP]Invalid Player(0)
Reply With Quote #1

Hi all,

After long time i came and i need help can somebody fix it

My server is freezing while i shooting


L 11/09/2016 - 04:07:29: [ZP] Invalid Player (0)
L 11/09/2016 - 04:07:29: [AMXX] Displaying debug trace (plugin "froz.amxx")
L 11/09/2016 - 04:07:29: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 11/09/2016 - 04:07:29: [AMXX] [0] froz.sma::make_tracer (line 221)


Line 221
Code:
if ((bullets[id] > clip) && (wpnid == CSW_ELITE) && g_elemental[id] && !zp_get_user_zombie(iVictim))

Line make_tracer
PHP Code:
public make_tracer(id)
{
    if (
get_pcvar_num(cvar_tracer))
    {
        new 
clip,ammowpnid get_user_weapon(id,clip,ammo), pteam[16]
        
get_user_team(idpteam15)
        
        static 
iVictimiDummy
        get_user_aiming
(idiVictimiDummy9999);
        
        if ((
bullets[id] > clip) && (wpnid == CSW_ELITE) && g_elemental[id] && !zp_get_user_zombie(iVictim))
        {
            new 
vec1[3], vec2[3], rgb[3]
            
get_user_origin(idvec11// origin; your camera point.
            
get_user_origin(idvec24// termina; where your bullet goes (4 is cs-only)
                        
            
switch(random_num(0,100))
            {
                case 
1..30rgb[0] = 0rgb[1] = 100rgb[2] = 255set_user_weapon_anim(idrandom_num(2,6))
                case 
31..100rgb[0] = 255rgb[1] = 69rgb[2] = 0set_user_weapon_anim(idrandom_num(8,12))            
            } 

            
set_user_tracer(idrgb[0], rgb[1], rgb[2])
        }
        
bullets[id] = clip
    
}

Thanks in advance.
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod

Last edited by Kakarot47; 11-08-2016 at 18:18.
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 11-08-2016 , 19:35   Re: [ZP]Invalid Player(0)
Reply With Quote #2

Try is_user_connected(id) and is_user_connected(iVicti) before this line.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 11-08-2016 at 19:35.
EFFx is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-09-2016 , 03:17   Re: [ZP]Invalid Player(0)
Reply With Quote #3

Is it always freezing whenever you shoot or is it only crashing when you shoot a certain entity?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 11-09-2016 , 07:14   Re: [ZP]Invalid Player(0)
Reply With Quote #4

Fixed.
i removed that native and now its working great.

Thanks for compromise.
i am proud of you.
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
Reply



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:14.


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