06.08.2016, 09:22
What kind of errors? A second parameter is needed for the amount of money
as well as when calling from a filterscript:
EDIT: Sorry, didn't refresh the page.
pawn Код:
forward SetPlayerVarMoney(playerid, cash);
public SetPlayerVarMoney(playerid, cash)
{
PlayerInfo[playerid][pCash] += cash;
}
pawn Код:
CallRemoteFunction("SetPlayerVarMoney", "ii", playerid, cash_here);