09.08.2013, 20:40
Hey, my GM uses a serverside money system, and i need that to work with my FS. Right now what happens is:
The player presses buy, the money goes down, and then up again ( the player dosent loose any money ). This is after i have done this:
I found this from the GM and putted it in my FS:
And then i replaced all
in the FS to
Compiles with no errors or warnings. I don't know if it was like that before i edited the FS and tried to make it work or not. Please help.
The player presses buy, the money goes down, and then up again ( the player dosent loose any money ). This is after i have done this:
I found this from the GM and putted it in my FS:
pawn Код:
enum pInfo
{
pCash
};
new PlayerInfo[MAX_PLAYERS][pInfo];
stock GiveMoney(playerid, money)
{
PlayerInfo[playerid][pCash] += money;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
return 1;
}
pawn Код:
GivePlayerMoney
pawn Код:
GiveMoney