Timers & AddCommas - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timers & AddCommas (
/showthread.php?tid=488040)
Timers & AddCommas -
Lidor124 - 16.01.2014
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
Re: Timers & AddCommas -
Blademaster680 - 16.01.2014
Код:
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?
Re: Timers & AddCommas -
Lidor124 - 16.01.2014
Blademaster i meant the Vault: %d will be with commas by using the function AddCommas