03.11.2017, 01:47
[QUOTE=Eoussama;3948841]Here you go:
Still crashes..
PHP код:
stock TDConvertPrice(price)
{
new pricestring[50], j = valstr(pricestring, price);
while(j > 0)
{
if(j % 3 == 0 && pricestring[j] != '\0')
strins(pricestring, "~y~,~w~", (strlen(pricestring) - j));
j--;
}
strins(pricestring, "~g~$~w~", 0);
return pricestring;
}