31.01.2011, 20:39
This is how you would go about saving it using dini:
This is how you would go about reading and setting the position to it, using dini:
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!
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);
pawn Код:
SetPlayerPos(playerid, dini_Float(file,"posx"),dini_Float(file,"posy"),dini_Float(file,"posz"));