26.06.2013, 01:27
My guess is that you are saving the money to a variable, but forget using the original GivePlayerMoney function.
A lot of people do it like this (Prevents people from using money that have been spawned/created by cheats)
I believe you might've forgotten the GivePlayerMoney, if you are using a function like this at all. Just a guess though.
A lot of people do it like this (Prevents people from using money that have been spawned/created by cheats)
pawn Код:
forward _GivePlayerMoney(playerid, amount);
public _GivePlayerMoney(playerid, amount)
{
Cash[playerid] += amount;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, amount);
}
forward _GetPlayerMoney(playerid);
public _GetPlayerMoney(playerid);
{
return Cash[playerid];
}