Raised This Month: $ Target: $400
 0% 

Invalid player 3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-02-2012 , 17:58   Invalid player 3
Reply With Quote #1

Quote:
L 07/02/2012 - 00:27:10: [FUN] Invalid player 3
L 07/02/2012 - 00:27:10: [AMXX] Displaying debug trace (plugin "jb_days_lr.amxx")
L 07/02/2012 - 00:27:10: [AMXX] Run time error 10: native error (native "give_item")
L 07/02/2012 - 00:27:10: [AMXX] [0] jb_days_lr.sma::sub_choose_enemy (line 655)
PHP Code:
    else if(deagle_duel[id])
    {
        
deagle_duel[tempid] = true
        
        
new weaponEnt give_item(id"weapon_deagle")
        new 
weaponEntTemp give_item(tempid"weapon_deagle")

        if(
weaponEnt 0) {
            
cs_set_weapon_ammo(weaponEnt1)
        }
        if(
weaponEntTemp 0) {
            
cs_set_weapon_ammo(weaponEntTemp1)
        }
        
        
set_hudmessage02550, -1.00.4025.08.00.00.010)
        
show_hudmessage(0"%L"LANG_PLAYER,"DEAGLE_DUEL"challengerchallenged)
    } 
655line
PHP Code:
        new weaponEntTemp give_item(tempid"weapon_deagle"
GhostMan is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 07-02-2012 , 17:59   Re: Invalid player 3
Reply With Quote #2

check if tempid is alive
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 07-02-2012 at 18:00.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
t3hNox
Senior Member
Join Date: Oct 2009
Old 07-02-2012 , 18:00   Re: Invalid player 3
Reply With Quote #3

Check if both players are alive.
is_user_alive()
t3hNox is offline
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-03-2012 , 08:56   Re: Invalid player 3
Reply With Quote #4

you mean like that?

PHP Code:
if(is_user_alive(id))
{
    new 
weaponEnt give_item(id"weapon_deagle")
}

if(
is_user_alive(tempid))
{
    new 
weaponEntTemp give_item(tempid"weapon_deagle")


Last edited by GhostMan; 07-03-2012 at 08:56.
GhostMan is offline
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 05:25.


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