Money problem(-100$)
#9

Quote:
Originally Posted by Alteh
Посмотреть сообщение
That is wrong.

The problem of losing money when dyingh happens sometimes.

Solution:

Код:
#include <a_samp>

new Money[MAX_PLAYERS];

public OnPlayerUpdate(playerid)
{
if(GetPlayerMoney(playerid) != Money[playerid])
{
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, Money[playerid]);
}
    return 1;
}
Seriously? can you explain how does that Money[playerid] will return the $100 back to the player when a player die?
Reply


Messages In This Thread
Money problem(-100$) - by myhay9898 - 11.09.2018, 14:29
Re: Money problem(-100$) - by UFF - 11.09.2018, 14:48
Re: Money problem(-100$) - by myhay9898 - 11.09.2018, 14:58
Re: Money problem(-100$) - by akib - 11.09.2018, 15:02
Re: Money problem(-100$) - by UFF - 11.09.2018, 15:11
Re: Money problem(-100$) - by B-rian - 11.09.2018, 15:13
Re: Money problem(-100$) - by Calisthenics - 11.09.2018, 15:13
Re: Money problem(-100$) - by Alteh - 12.09.2018, 05:53
Re: Money problem(-100$) - by UFF - 12.09.2018, 06:00
Re: Money problem(-100$) - by Burridge - 12.09.2018, 07:18

Forum Jump:


Users browsing this thread: 1 Guest(s)