08.09.2017, 15:22
(
Последний раз редактировалось BadJih; 08.09.2017 в 16:08.
)
//load 3dtext
if(BizText[idx]) Delete3DTextLabel(BizText[idx]);
if(BizInfo[idx][bOwned] == 0)
{
new pricestring[32];
new price = BizInfo[idx][bValue];
new j = valstr(pricestring,price);
while(j >= 4) { j -= 3; strins(pricestring,",",j); }
strins(pricestring,"$",0);
format(string, sizeof(string), "%s\nStatus: For Sale\nPrice: %s",BizInfo[idx][bName],pricestring);
}
}
i want to change bValue from this (example) : 4000000(4m) to 4,000,000...
if(BizText[idx]) Delete3DTextLabel(BizText[idx]);
if(BizInfo[idx][bOwned] == 0)
{
new pricestring[32];
new price = BizInfo[idx][bValue];
new j = valstr(pricestring,price);
while(j >= 4) { j -= 3; strins(pricestring,",",j); }
strins(pricestring,"$",0);
format(string, sizeof(string), "%s\nStatus: For Sale\nPrice: %s",BizInfo[idx][bName],pricestring);
}
}
i want to change bValue from this (example) : 4000000(4m) to 4,000,000...