Server side Money Crash
#2

Here you go:

PHP код:
stock TDConvertPrice(price)
{
    new 
pricestring[50], valstr(pricestringprice);
    while(
0)
    {
        if(
== && pricestring[j] != '\0')
            
strins(pricestring"~y~,~w~", (strlen(pricestring) - j));
        
j--;
    }
    
strins(pricestring"~g~$~w~"0);
    return 
pricestring;

I'd suggest using custom specifiers for this kind of formatting,
refer to this thread for more information: https://sampforum.blast.hk/showthread.php?tid=313488
Reply


Messages In This Thread
Server side Money Crash - by vassilis - 01.11.2017, 19:00
Re: Server side Money Crash - by Eoussama - 01.11.2017, 19:42
Re: Server side Money Crash - by vassilis - 03.11.2017, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)