Quote:
Originally Posted by SilentSoul
pawn Код:
SetTimerEx("UpdateBailSentence", 1000, true, "i", playerid);
public UpdateBailSentence(playerid) { new string[128], bailsen, bailsens; bailsen = PlayerInfo[playerid][pBailSentence] - 100;//here you have defined the bailsen variable to -100 bailsens --;//and here you set the variable to - 1 , that's why its bugged, so let's try by another function it seems like you are trying to decrease the time -1 each one second to show as textdraws only format(string, sizeof string, "Bail Sentence - $%i", bailsens); TextDrawSetString(JailList, string); TextDrawShowForPlayer(playerid, JailList); return 1; }
|
bailsens will decrease the cash -1 each 1 sec, how to make the cash decrease -100 each 1 sec ?