[Help] Adding position info on register
#1

Hi, im new on pawno and im trying to make a save pos system.
That all works ok.

The problem is when i want to save new registered user info, the coordinates dont save.

I have:
Код:
new x[25] = "1546.512451", y[25] = "-1675.840332", z[25] = "13.562461";


    		dini_Set(file, "posX", x);
		dini_Set(file, "posY", y);
		dini_Set(file, "posZ", z);
This must save the file like this:
Код:
posX=1546.512451
posY=-1675.840332
posZ=13.562461
And it saves like this:
Код:
posX=1153519744.000000
posY=-992904448.000000
posZ=1096351744.000000
i tried defining variables with float but this ones dont write the dots.

Whats im doing wrong?

Thanks!

Greetings

Ranslsad
Reply


Messages In This Thread
[Help] Adding position info on register - by ranslsad - 18.01.2014, 15:48
Re: [Help] Adding position info on register - by Smileys - 18.01.2014, 17:14
Re: [Help] Adding position info on register - by Zamora - 18.01.2014, 17:37
Respuesta: Re: [Help] Adding position info on register - by ranslsad - 18.01.2014, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)