why this is not working?
#3

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 ?
Reply


Messages In This Thread
why this is not working? - by AnonScripter - 19.12.2013, 16:38
Re: why this is not working? - by SilentSoul - 19.12.2013, 16:53
Re: why this is not working? - by AnonScripter - 19.12.2013, 17:00
Re: why this is not working? - by SilentSoul - 19.12.2013, 17:05
Re: why this is not working? - by AnonScripter - 19.12.2013, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)