Little help please
#7

This is how you would go about saving it using dini:

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
dini_FloatSet(file,"posx", x);
dini_FloatSet(file,"posy", y);
dini_FloatSet(file,"posz", z);
This is how you would go about reading and setting the position to it, using dini:

pawn Код:
SetPlayerPos(playerid, dini_Float(file,"posx"),dini_Float(file,"posy"),dini_Float(file,"posz"));
I recommend you try reading through the dini and Pawn documentation for more information as you seem to be seriously confused with your syntax here. In your original post you're setting the players position to...well something, then you're adding in an extra parameter that the SetPlayerPos function does not accept, and the parameter is the return value of GetPlayerPos subtracted from the return of the dini_Int function. I don't know what you were expecting to happen there, but it really makes no sense!
Reply


Messages In This Thread
Little help please - by bartje01 - 31.01.2011, 15:33
Re: Little help please - by Stigg - 31.01.2011, 16:22
Re: Little help please - by Steven Paul - 31.01.2011, 16:27
Re: Little help please - by bartje01 - 31.01.2011, 16:31
Re: Little help please - by dice7 - 31.01.2011, 16:34
Re: Little help please - by bartje01 - 31.01.2011, 16:44
Re: Little help please - by JaTochNietDan - 31.01.2011, 20:39
Re: Little help please - by bartje01 - 31.01.2011, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)