Y_Ini Position
#3

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+
Reply


Messages In This Thread
Y_Ini Position - by Lz - 02.12.2012, 21:27
Re: Y_Ini Position - by ReneG - 02.12.2012, 21:33
Re: Y_Ini Position - by Lz - 02.12.2012, 21:41
Re: Y_Ini Position - by Lz - 02.12.2012, 21:52
Re: Y_Ini Position - by ReneG - 02.12.2012, 22:04
Re: Y_Ini Position - by Lz - 02.12.2012, 22:07
Re: Y_Ini Position - by ReneG - 02.12.2012, 22:11
Re: Y_Ini Position - by Lz - 02.12.2012, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)