Y_INI Problem
#5

Код:
function SaveAccountStats(playerid)
{
if(spawnan[playerid] == 10)
	{
	new
		INI:File = INI_Open(UserPath(playerid))
	;
    INI_SetTag(File,"data");
    
   	PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
    PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
   	new
	   	Float:x,
	    Float:y,
		Float:z
	;
	GetPlayerPos(playerid,x,y,z);
	PlayerInfo[playerid][pPos_x] = x;
	PlayerInfo[playerid][pPos_y] = y;
	PlayerInfo[playerid][pPos_z] = z;
	
    INI_WriteInt(File,"Cash",PlayerInfo[playerid][pCash]);
    INI_WriteInt(File,"Sex",PlayerInfo[playerid][pSex]);
    INI_WriteInt(File,"Age",PlayerInfo[playerid][pAge]);
    INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
    INI_WriteFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
    INI_WriteFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);
    INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
    INI_WriteInt(File,"Team",PlayerInfo[playerid][pTeam]);
    INI_WriteInt(File,"Accent",PlayerInfo[playerid][pAccent]);
    INI_WriteInt(File,"Posao",PlayerInfo[playerid][Posao]);
    INI_WriteInt(File,"Ugovor",PlayerInfo[playerid][Ugovor]);
    INI_WriteInt(File,"Plata",PlayerInfo[playerid][Plata]);
    INI_WriteInt(File,"Level",PlayerInfo[playerid][Level]);
    INI_WriteInt(File,"Exp",PlayerInfo[playerid][Exp]);
    INI_WriteInt(File,"RExp",PlayerInfo[playerid][RExp]);
    INI_WriteInt(File,"Organizacija",PlayerInfo[playerid][Organizacija]);
    INI_WriteInt(File,"Rank",PlayerInfo[playerid][Rank]);
    INI_WriteInt(File,"Lider",PlayerInfo[playerid][Lider]);
    INI_WriteInt(File,"Banka",PlayerInfo[playerid][Banka]);
    INI_WriteInt(File,"Auto",PlayerInfo[playerid][AutoKljuc]);
    INI_WriteInt(File,"Auto2",PlayerInfo[playerid][AutoKljuc2]);
    INI_WriteInt(File,"Auto3",PlayerInfo[playerid][AutoKljuc3]);
    INI_WriteInt(File,"Vozacka",PlayerInfo[playerid][Vozacka]);
    INI_WriteInt(File,"Kuca",PlayerInfo[playerid][KucaKljuc]);
    INI_WriteInt(File,"Stan",PlayerInfo[playerid][StanKljuc]);
    INI_WriteInt(File,"Vikendica",PlayerInfo[playerid][VikendicaKljuc]);
    INI_WriteInt(File,"Firma",PlayerInfo[playerid][FirmaKljuc]);
    INI_WriteInt(File,"AdminLevel",PlayerInfo[playerid][AdminLevel]);
    INI_WriteInt(File,"GALevel",PlayerInfo[playerid][GALevel]);
    INI_WriteInt(File,"Upozorenja",PlayerInfo[playerid][Upozorenja]);
    INI_WriteInt(File,"Ulogovan",PlayerInfo[playerid][Ulogovan]);
INI_WriteInt(File,"Bon",PlayerInfo[playerid][Bon]);
    INI_WriteInt(File,"Adresar",PlayerInfo[playerid][Adresar]);
    INI_WriteInt(File,"Telefon",PlayerInfo[playerid][Telefon]);
    INI_WriteInt(File,"Kredit",PlayerInfo[playerid][Kredit]);
    INI_WriteInt(File,"Sekunde",PlayerInfo[playerid][Sekunde]);
    INI_WriteInt(File,"Sati",PlayerInfo[playerid][Sati]);
    INI_WriteInt(File,"Rata",PlayerInfo[playerid][Rata]);
    INI_WriteInt(File,"Spawn",PlayerInfo[playerid][Spawn]);
    INI_WriteInt(File,"Droga",PlayerInfo[playerid][Droga]);
    INI_WriteInt(File,"Materijali",PlayerInfo[playerid][Materijali]);
    INI_WriteInt(File,"Zatvor",PlayerInfo[playerid][Zatvor]);
    INI_WriteInt(File,"Zatvoren",PlayerInfo[playerid][Zatvoren]);
    INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][Tutorial]);
    INI_WriteInt(File,"TutorialZav",PlayerInfo[playerid][TutorialZav]);
    INI_WriteInt(File,"Drzava",PlayerInfo[playerid][Drzava]);
    INI_WriteString(File, "Mail", PlayerInfo[playerid][Mail]);
    INI_WriteInt(File,"Sjeme",PlayerInfo[playerid][Sjeme]);
    INI_WriteInt(File,"Plantano",PlayerInfo[playerid][Plantano]);
    INI_WriteInt(File,"Plantano2",PlayerInfo[playerid][Plantano2]);
    INI_WriteInt(File,"PrevozT",PlayerInfo[playerid][PrevozT]);
    INI_WriteInt(File,"PrevozM",PlayerInfo[playerid][PrevozM]);
    INI_WriteInt(File,"Muted",PlayerInfo[playerid][Muted]);
    INI_WriteInt(File,"Donator",PlayerInfo[playerid][Donator]);
    INI_Close(File);
    }
    return 1;
}
Reply


Messages In This Thread
Y_INI Problem - by n0namE - 14.02.2012, 11:02
Re: Y_INI Problem - by RicaNiel - 14.02.2012, 11:03
Re: Y_INI Problem - by n0namE - 14.02.2012, 11:05
Re: Y_INI Problem - by RicaNiel - 14.02.2012, 11:10
Re: Y_INI Problem - by n0namE - 14.02.2012, 11:14
Re: Y_INI Problem - by RicaNiel - 14.02.2012, 11:16
Re: Y_INI Problem - by n0namE - 14.02.2012, 11:18
Re: Y_INI Problem - by RicaNiel - 14.02.2012, 11:22
Re: Y_INI Problem - by n0namE - 14.02.2012, 11:24
Re: Y_INI Problem - by KingHual - 14.02.2012, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)