Saving spawn location with dini
#3

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
To save this you can save each coord as one number:

new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
dini_FloatSet(file, "SpawnX", X);
dini_FloatSet(file, "SpawnY", Y);
dini_FloatSet(file, "SpawnZ", Z);


Then when you load it use this:

new

Float:X = dini_Float(file, "SpawnX"),
Float:Y = dini_Float(file, "SpawnY"),
Float:Z = dini_Float(file, "SpawnZ");

SetPlayerPos(playerid, X, Y, Z);



There are great things you can do with dini :P

Hope that helps
Thank man saved my day
Reply


Messages In This Thread
Saving spawn location with dini - by Dolph - 28.04.2010, 16:29
Re: Saving spawn location with dini - by Dolph - 28.04.2010, 16:50
Re: Saving spawn location with dini - by park4bmx - 02.05.2010, 22:19

Forum Jump:


Users browsing this thread: 2 Guest(s)