Position is not saving after GMX
#1

Well most of my stats save after GMX but my position dont ..... I have tried a lot of things just none of them work


pawn Код:
CMD:restart(playerid, params[])
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
         GetPlayerPos(playerid,PlayerInfo[playerid][PosX],PlayerInfo[playerid][PosY],PlayerInfo[playerid][PosZ]);

         new INI:File = INI_Open(UserPath(playerid));
         INI_SetTag(File,"data");
         INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
         INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
         INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
         INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
         INI_WriteFloat(File,"PosX",PlayerInfo[playerid][PosX]);
         INI_WriteFloat(File,"PosY",PlayerInfo[playerid][PosY]);
         INI_WriteFloat(File,"PosZ",PlayerInfo[playerid][PosZ]);
         INI_WriteInt(File,"AdminLevel",PlayerData[playerid][AdminLevel]);
         INI_WriteString(File,"AdminName",PlayerData[playerid][AdminName]);
         INI_WriteInt(File,"AdminDuty",PlayerData[playerid][AdminDuty]);
         INI_WriteInt(File,"AdminSkin",PlayerData[playerid][AdminSkin]);
         INI_WriteInt(File,"OriginalSkin",PlayerData[playerid][OriginalSkin]);
         INI_WriteString(File,"OriginalName",PlayerData[playerid][OriginalName]);
         INI_Close(File);
       }
    }
    SendRconCommand("gmx");
    return 1;
}

pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{

    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Float("PosX",PlayerInfo[playerid][PosX]);
    INI_Float("PosY",PlayerInfo[playerid][PosY]);
    INI_Float("PosZ",PlayerInfo[playerid][PosZ]);
    INI_Int("AdminLevel",PlayerData[playerid][AdminLevel]);
    INI_String("AdminName",PlayerData[playerid][AdminName], 24);
    INI_Int("AdminDuty",PlayerData[playerid][AdminDuty]);
    INI_Int("AdminSkin",PlayerData[playerid][AdminSkin]);
    INI_Int("OriginalSkin",PlayerData[playerid][OriginalSkin]);
    INI_String("OriginalName",PlayerData[playerid][OriginalName], 24);

    return 1;
}
It saves every thing else a part from the coordinates


Thank You


Please Help Me Please
Reply


Messages In This Thread
Position is not saving after GMX - by Scripter12345 - 27.04.2012, 22:55
Re: Position is not saving after GMX - by ReneG - 27.04.2012, 23:28
Respuesta: Re: Position is not saving after GMX - by [Vector] - 27.04.2012, 23:40
Re: Position is not saving after GMX - by Neff - 28.04.2012, 00:10
Re: Position is not saving after GMX - by Scripter12345 - 28.04.2012, 12:31
Re: Position is not saving after GMX - by Scripter12345 - 28.04.2012, 13:38
Re: Position is not saving after GMX - by TheArcher - 28.04.2012, 13:45
Re: Position is not saving after GMX - by Scripter12345 - 28.04.2012, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)