30.03.2015, 10:59
Quote:
You misunderstood, assume you own a house, set that house for sale and a guy purchases it the owner you wont receive the cash.
and the problem is with this part so I need to know how to fix: Код:
GivePlayerMoney(hInfo[houseid][Owner], hInfo[houseid][Price]); |
pawn Код:
GiveMoney(playerid)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
return true;
}
pawn Код:
PlayerInfo[playerid][pCash] += hInfo[houseid][Price];
GiveMoney(playerid);