Raised This Month: $ Target: $400
 0% 

VIP get_user_attacker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-30-2020 , 13:47   VIP get_user_attacker
Reply With Quote #1

Hello, i always get this error/warning thing when i play on the server

PHP Code:
L 08/29/2020 19:07:42Invalid player id 0
L 08
/29/2020 19:07:42: [AMXXDisplaying debug trace (plugin "VIP.amxx")
L 08/29/2020 19:07:42: [AMXXRun time error 10native error (native "get_user_attacker")
L 08/29/2020 19:07:42: [AMXX]    [0VIP.sma::Damage (line 53
I modified the code to my like, and this is what happens,
can anynone help me?
PHP Code:
public Damage(id)
{
    new 
weaponhitpointattacker get_user_attacker(id,weapon,hitpoint)
    if(
attacker<=maxplayers && is_user_alive(attacker) && attacker!=id && is_user_connected(attacker)) // - this is the line i get errors on
    
if (get_user_flags(attacker) & ADMIN_LEVEL_H
    {
        new 
money read_data(2) * get_pcvar_num(mpd)
        if(
hitpoint==1money += get_pcvar_num(mhb)
        
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
    }

HowToRuski 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:55.


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