25.12.2011, 10:42
Simple
under the
OnPlayerSpawn
Put this
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
if you change your mind use this
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,"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);
Код:
SetPlayerPos(playerid, PlayerInfo[playerid][posx],PlayerInfo[playerid][posy],PlayerInfo[playerid][posz]);