Raised This Month: $ Target: $400
 0% 

Invalid player id 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 12-20-2014 , 10:21   Invalid player id 0
Reply With Quote #1

Error:
Code:
L 12/20/2014 - 17:10:34: Invalid player id 0
L 12/20/2014 - 17:10:34: [AMXX] Displaying debug trace (plugin "test.amxx")
L 12/20/2014 - 17:10:34: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 12/20/2014 - 17:10:34: [AMXX]    [0] skill_system.sma::fw_PlayerTakeDamage (line 382)
and code from plugin:
PHP Code:
public fw_PlayerTakeDamage(thisidinflictoridattackerFloat:damagedamagebits)
{
    if(!
is_user_connected(idattacker) && !is_user_alive(idattacker) && this == idattacker)
        return 
HAM_IGNORED;
    
    if(
get_user_weapon(idattacker) != CSW_KNIFE
    { 
        
damage += 30
    
}
    else
    {
        
damage += 50
    
}
        
    
SetHamParamFloat(4damage);
    
    return 
HAM_IGNORED;

KiLLeR. 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 15:18.


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