What am I doing wrong?[HELP ME]
#2

Dini for the loser.

Anyway, you should have it like this instead:
pawn Код:
GetPlayerPos( playerid, x, y, z );
dini_FloatSet( file, "PosX", x );
dini_FloatSet( file, "PosY", y );
dini_FloatSet( file, "PosZ", z );
Firstly, you are writing an integer to the file when it should be a float value (coordinates are floats). I would also suggestion you add a check in OnPlayerSpawn, to check if the file exists.
Reply


Messages In This Thread
What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 05:43
Re: What am I doing wrong?[HELP ME] - by Grim_ - 22.12.2010, 05:47
Re: What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 05:54
Re: What am I doing wrong?[HELP ME] - by Grim_ - 22.12.2010, 05:57
Re: What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 05:58
Re: What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 06:05
Re: What am I doing wrong?[HELP ME] - by Grim_ - 22.12.2010, 06:07
Re: What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 06:12
Re: What am I doing wrong?[HELP ME] - by [JnA]DukeNukem - 22.12.2010, 06:15
Re: What am I doing wrong?[HELP ME] - by Grim_ - 22.12.2010, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)