[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
#2

you need to save it into files or a database with either INI saving systems, or SQLite/MySQL.

I prefer SQLite though.
Reply
#3

Change
pawn Код:
dini_Set
to
pawn Код:
dini_FloatSet
Reply
#4

Solved, thanks

Greetings

Ranslsad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)