Quote:
Originally Posted by VincentDunn
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; }
|
Im a pretty new scripter, Just before you replied i realised i would need to store the Pos in a variable so i added the variable floats but in a wrong idea, But then you posted so i saw my error, So i thank you very much i learnt a lot in the last 2 minutes
Rep+