19.07.2014, 22:57
So i been looking all over for a way to minus a number in a users file like
Ignore indenting, it looked all messed up with it when posting.
I want PlayerInfo[playerid][pCash] = 1; to minus 500 from their current amount, how do we do this?
Ignore indenting, it looked all messed up with it when posting.
pawn Код:
if(PlayerInfo[playerid][pCash] < 500)
{
SendClientMessage(playerid, COLOR_GREY, "You don't have enough money");
RemovePlayerFromVehicle(playerid);
}
GivePlayerMoney(playerid, -500);
PlayerInfo[playerid][pRenting] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Enjoy your ride!");
PlayerInfo[playerid][pCash] = 1;