Tedd bele az a_samp.inc-edbe, úgy is mindig használni fogod.
stock FormatNumber(number)
{
new numOfPeriods = 0, tmp = number;
new str[32];
while(tmp > 1000) {
tmp = floatround(tmp / 1000, floatround_floor), ++numOfPeriods;
}
valstr(str, number);
new slen = strlen(str);
for(new i = 1; i != numOfPeriods + 1; ++i) {
strins(str, \",\", slen - 3*i);
}
return str;
//0return number;
}
:wave: