19.12.2013, 16:53
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;
}