#1

Radar Problem, everything good I see it like 56.000000 .. I don't need the zero's .. only 56 km..thats all.. %d
Reply
#2

%.0f - 56
%.1f - 56.0
Reply
#3

You must use format for that %f , for more wiki.sa-mp.com/wiki/Format
Reply
#4

thanks !!! REPPED !
Reply
#5

ooh I forgot.. and if I want 2 digit like this " 1.000.000" ??
Reply
#6

Quote:
Originally Posted by Ugaustin
Посмотреть сообщение
ooh I forgot.. and if I want 2 digit like this " 1.000.000" ??
I think it would be the same..
Reply
#7

nope.. I tried..
Reply
#8

PHP код:
format(string,sizeof(string),"%f",result);
if(
strlen(string) == 7)//So the minimum is 1.000.000 (1000000) and the max. is 9.999.999 (9999999)
{
//now work with "strmid" and "strpack". Iam not a math genie at 2:50 PM

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)