Timers & AddCommas
#1

I need help with AddCommas, i dont understand how to use it, when i use it instead of getting number

Код:
format(string, sizeof(string), "Business 1: %s | ID: %d | Level: %d | Status: %s | Products: %d | Vault: $%d", RBT(idx), idx, BizInfo[idx][bLevel], RBS(idx), BizInfo[idx][bProducts], AddCommas(BizInfo[idx][bMoney]));
SendClientMessage(playerid, COLOR_WHITE, string);
on the AddCommas stock i checked it on game and instead of getting the real price of my vault (about 19k) in my biz and i still keep getting number 49.
What am i doing wrong?


My second question
how to make time of counting 60 seconds for each minute during 15 minutes, i mean the coundown is 15 minutes to zero, what means GameTextForPlayer will show up each 60 seconds or 1 minute past... example:

min/sec
14:59
14:58
14:57
etc.... (timer for countdown of 15 minutes)

+REP
Reply
#2

Код:
format(string, sizeof(string), "Business 1: %s | ID: %d | Level: %d | Status: %s | Products: %d | Vault: $%d", RBT(idx), idx, BizInfo[idx][bLevel], RBS(idx), BizInfo[idx][bProducts], BizInfo[idx][bMoney]);
Try that rather?
Reply
#3

Blademaster i meant the Vault: %d will be with commas by using the function AddCommas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)