16.01.2014, 14:43
I need help with AddCommas, i dont understand how to use it, when i use it instead of getting number
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
Код:
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);
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