AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   /* Help Please *&&*&/ (https://forums.alliedmods.net/showthread.php?t=210190)

Natsheh 03-07-2013 16:05

/* Help Please *&&*&/
 
Quote:

Code:

public Player_Money(id)
{
        if(get_cvar_num("FM_Enabled") == 0)
                return PLUGIN_HANDLED
       
        cs_set_user_money(id, cs_get_user_money(id) + FM_MM, 1)
        set_task(5.0, "HelpMsg", id)
        set_task(10.0, "User_Alive", id)
        return PLUGIN_HANDLED
}


Ineed help With This ERROR

>>
L 03/07/2013 - 23:02:12: [CSTRIKE] Invalid player 2
L 03/07/2013 - 23:02:12: [AMXX] Displaying debug trace (plugin "Full-Money.amxx")
L 03/07/2013 - 23:02:12: [AMXX] Run time error 10: native error (native "cs_get_user_money")
L 03/07/2013 - 23:02:12: [AMXX] [0] Full-Money.sma::Player_Money (line 6)
L 03/07/2013 - 23:04:16: [CSTRIKE] Player out of range (0)
L 03/07/2013 - 23:04:16: [AMXX] Displaying debug trace (plugin "Full-Money.amxx")
L 03/07/2013 - 23:04:16: [AMXX] Run time error 10: native error (native "cs_get_user_money")
L 03/07/2013 - 23:04:16: [AMXX] [0] Full-Money.sma::Player_Money (line 6)
<<

Torge 03-07-2013 17:00

Re: /* Help Please *&&*&/
 
Check whether he's alive (probably not very important) and include cstrike too.

Natsheh 03-08-2013 00:11

Re: /* Help Please *&&*&/
 
ThXxX
The problom WAs To Check If hes Alive. :)


All times are GMT -4. The time now is 21:37.

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