27.04.2012, 22:55
Well most of my stats save after GMX but my position dont ..... I have tried a lot of things just none of them work
It saves every thing else a part from the coordinates
Thank You
Please Help Me Please
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;
}
Thank You
Please Help Me Please