can someone add comma's here for me?
#5

Код:
stock AddComma(numbers) //by Gamer931215
{
	new temp[24],counter = -1;
	valstr(temp,numbers);
	for(new i = strlen(temp);i > 0; i--)
	{
	    counter++;
		if(counter == 3)
		{
		    strins(temp,".",i);
		    counter = 0;
		}
	}
	return temp;
}
use it in this way:

AddComma([value here])
This will add a . every 3 digits (starting from the back)
Reply


Messages In This Thread
COMMAS in BUSINESS PRICE +REP - by BadJih - 08.09.2017, 15:22
Re: can someone add comma's here for me? - by SetPlayerNameTag - 08.09.2017, 15:25
Re: can someone add comma's here for me? - by BadJih - 08.09.2017, 15:37
Re: can someone add comma's here for me? - by SetPlayerNameTag - 08.09.2017, 15:39
Re: can someone add comma's here for me? - by thegamer355 - 08.09.2017, 15:41
Re: can someone add comma's here for me? - by BadJih - 08.09.2017, 15:45
Re: can someone add comma's here for me? - by BadJih - 08.09.2017, 16:08
Re: can someone add comma's here for me? - by Vince - 08.09.2017, 16:49

Forum Jump:


Users browsing this thread: 2 Guest(s)