Lottery issue - an error with an IF sentence + indicators +REP
#7

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
Well .. not the best way, but I came up with it right now
PHP код:
new string[20];
            
format(stringsizeof(string), "%i"number);
            for(new 
i=strlen(string)-3;i>0;i-=3)
            {
                
strins(string","i);
            } 
This way it starts at very last 3 digits, starts inserting a ',' every 3 digit till it reaches the string[0]
Or just use AddCommas();

https://sampwiki.blast.hk/wiki/AddCommas
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)