Making last position saving script work on playerspawn?
#3

Simple
under the
OnPlayerSpawn

Put this

Код:
SetPlayerPos(playerid, PlayerInfo[playerid][posx],PlayerInfo[playerid][posy],PlayerInfo[playerid][posz],PlayerInfo[playerid][posa],PlayerInfo[playerid][posi],PlayerInfo[playerid][posw]);
INI_WriteFloat(File,"Posx",X);
INI_WriteFloat(File,"Posy",Y);
INI_WriteFloat(File,"Posz",Z);
INI_WriteFloat(File,"Posa",A);
INI_WriteFloat(File,"Posi",I);
INI_WriteFloat(File,"Posw",W);


and why you have have such to many float
only need 3

Код:
INI_WriteFloat(File,"Posx",X);
    INI_WriteFloat(File,"Posy",Y);
    INI_WriteFloat(File,"Posz",Z);
if you change your mind use this

Код:
SetPlayerPos(playerid, PlayerInfo[playerid][posx],PlayerInfo[playerid][posy],PlayerInfo[playerid][posz]);
Reply


Messages In This Thread
Making last position saving script work on playerspawn? - by PlayHard - 25.12.2011, 04:59
Re: Making last position saving script work on playerspawn? - by Max_Coldheart - 25.12.2011, 08:03
Re: Making last position saving script work on playerspawn? - by Artix - 25.12.2011, 10:42
Re: Making last position saving script work on playerspawn? - by Artix - 25.12.2011, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)