02.12.2012, 21:33
For positions, you need 3 floats. One for x, y, and z coordinates.
pawn Код:
{
new
INI:File = INI_Open(UserPath(playerid)),
Float:x,
Float:y,
Float:z;
GetPlayerPos(playerid, x, y, z);
INI_SetTag(File,"PlayerData");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteFloat(File, "X", x);
INI_WriteFloat(File, "Y", y);
INI_WriteFloat(File, "Z", z)
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_Close(File);
return 1;
}