Sziasztok,egy újabb problémám van:
public AutomatikusMentes(playerid)
{
if(Belepve[playerid] == 1)
{
new filestr[128];
GetPlayerName(playerid,nev,sizeof(nev));
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(filestr, sizeof(filestr), \"Adatbazis/Karakterek/%s.ini\", nev);
new File:playerfile = fopen(filestr, io_write);
if(playerfile)
{
format(filestr, sizeof filestr, \"Pénz=%d\", JatekosInfo[playerid][Penz]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Pont=%d\", GetPlayerScore(playerid));
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Munka=%d\", JatekosInfo[playerid][Munka]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Halálok Száma=%d\", JatekosInfo[playerid][Halal]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Ölések Száma=%d\", JatekosInfo[playerid][Oles]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Skin=%d\", JatekosInfo[playerid][skin]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Kezdõ Spawn=%d\", JatekosInfo[playerid][KezdoSpawn]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"X=%f\", x);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Y=%f\", y);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Z=%f\", z);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Leader=%d\", JatekosInfo[playerid][Leader]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Frakció=%d\", JatekosInfo[playerid][Frakcio]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Rang=%d\", JatekosInfo[playerid][Rang]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Kor=%d\", JatekosInfo[playerid][Kor]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Nem=%d\", JatekosInfo[playerid][Nem]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Bannolva=%d\", JatekosInfo[playerid][bann]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Adminszint=%d\", JatekosInfo[playerid][Admin]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Bankszámla=%d\", JatekosInfo[playerid][bank]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Börtön=%d\", JatekosInfo[playerid][borton]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Admin Börtön=%d\", JatekosInfo[playerid][AdminBorton]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Telefon=%d\", JatekosInfo[playerid][Telefon]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Telefon Egyenleg=%d\", JatekosInfo[playerid][TelefonEgyenleg]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Játszott Idõ=%d\", JatekosInfo[playerid][JatszottIdo]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Fizetés Idõ=%d\", JatekosInfo[playerid][FizetesIdo]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Fizetés=%d\", JatekosInfo[playerid][Fizetes]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Indok=%s\", JatekosInfo[playerid][indok]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Térkép=%d\", JatekosInfo[playerid][Terkep]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Okostelefon=%d\", JatekosInfo[playerid][Okostelefon]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Lottó1=%d\", JatekosInfo[playerid][Lotto1]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Lottó2=%d\", JatekosInfo[playerid][Lotto2]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Lottó3=%d\", JatekosInfo[playerid][Lotto3]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Lottó4=%d\", JatekosInfo[playerid][Lotto4]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Lottó5=%d\", JatekosInfo[playerid][Lotto5]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Nyeremény=%d\", JatekosInfo[playerid][Nyeremeny]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Kötél=%d\", JatekosInfo[playerid][Kotel]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Interior=%d\", JatekosInfo[playerid][interior]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Jármû=%d\", JatekosInfo[playerid][Jarmu]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Megbilincselve=%d\", JatekosInfo[playerid][Megbilincselve]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Kaja=%d\", JatekosInfo[playerid][Kaja]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Telefonkönyv=%d\", JatekosInfo[playerid][Telefonkonyv]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Tanult=%d\", JatekosInfo[playerid][Tanult]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Jármûlopás=%d\", JatekosInfo[playerid][Jarmulopas]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Jármûlopás Képesség=%d\", JatekosInfo[playerid][JarmulopasKepesseg]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Drog Készítés=%d\", JatekosInfo[playerid][DrogKeszites]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Drog Készítés Képesség=%d\", JatekosInfo[playerid][DrogKeszitesKepesseg]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Éhség=%d\", JatekosInfo[playerid][Ehseg]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Szomjúság=%d\", JatekosInfo[playerid][szomjusag]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Álmosság=%d\", JatekosInfo[playerid][Almossag]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Ház=%d\", JatekosInfo[playerid][Haz]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Házban=%d\", JatekosInfo[playerid][Hazban]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Szolgálatban=%d\", JatekosInfo[playerid][szolgalatban]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Vérdíj=%d\", JatekosInfo[playerid][Verdij]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Ital=%d\", JatekosInfo[playerid][ital]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Munka Óra=%d\", JatekosInfo[playerid][MunkaOra]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Cannabis=%d\", JatekosInfo[playerid][Cannabis]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Marihuana=%d\", JatekosInfo[playerid][Marihuana]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Joint=%d\", JatekosInfo[playerid][Joint]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Papír=%d\", JatekosInfo[playerid][Papir]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Teher=%d\", JatekosInfo[playerid][Teher]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Max Teher=%d\", JatekosInfo[playerid][MaxTeher]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Biznisz=%d\", JatekosInfo[playerid][biznisz]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Drogos=%d\", JatekosInfo[playerid][Drogos]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Ittas=%d\", JatekosInfo[playerid][ittas]);
fwrite(playerfile, filestr);
new Float:hp,Float:armour;
GetPlayerHealth(playerid,hp);
GetPlayerArmour(playerid,armour);
format(filestr, sizeof filestr, \"HP=%f\", hp);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Armour=%f\", armour);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Energiaital=%d\", JatekosInfo[playerid][Energiaital]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Energia Ivas=%d\", JatekosInfo[playerid][EnergiaIvas]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Bevezeto=%d\", JatekosInfo[playerid][bevezeto]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Buntett=%d\", JatekosInfo[playerid][buntett]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"C4=%d\", JatekosInfo[playerid][C4]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Robbanotoltet=%d\", JatekosInfo[playerid][Robbanot]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Radiovevo=%d\", JatekosInfo[playerid][Radiovevo]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Ragasztoszalag=%d\", JatekosInfo[playerid][Ragasztosz]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"LSJegy=%d\", JatekosInfo[playerid][LSJegy]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"SFJegy=%d\", JatekosInfo[playerid][sFJegy]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"LVJegy=%d\", JatekosInfo[playerid][LVJegy]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk1=%d\", JatekosInfo[playerid][Csekk1]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk2=%d\", JatekosInfo[playerid][Csekk2]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk3=%d\", JatekosInfo[playerid][Csekk3]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk4=%d\", JatekosInfo[playerid][Csekk4]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk5=%d\", JatekosInfo[playerid][Csekk5]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk6=%d\", JatekosInfo[playerid][Csekk6]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk7=%d\", JatekosInfo[playerid][Csekk7]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk8=%d\", JatekosInfo[playerid][Csekk8]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk9=%d\", JatekosInfo[playerid][Csekk9]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk10=%d\", JatekosInfo[playerid][Csekk10]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk11=%d\", JatekosInfo[playerid][Csekk11]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk12=%d\", JatekosInfo[playerid][Csekk12]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk13=%d\", JatekosInfo[playerid][Csekk13]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk14=%d\", JatekosInfo[playerid][Csekk14]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Csekk15=%d\", JatekosInfo[playerid][Csekk15]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk1=%d\", JatekosInfo[playerid][pCsekk1]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk2=%d\", JatekosInfo[playerid][pCsekk2]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk3=%d\", JatekosInfo[playerid][pCsekk3]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk4=%d\", JatekosInfo[playerid][pCsekk4]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk5=%d\", JatekosInfo[playerid][pCsekk5]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk6=%d\", JatekosInfo[playerid][pCsekk6]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk7=%d\", JatekosInfo[playerid][pCsekk7]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk8=%d\", JatekosInfo[playerid][pCsekk8]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk9=%d\", JatekosInfo[playerid][pCsekk9]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk10=%d\", JatekosInfo[playerid][pCsekk10]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk11=%d\", JatekosInfo[playerid][pCsekk11]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk12=%d\", JatekosInfo[playerid][pCsekk12]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk13=%d\", JatekosInfo[playerid][pCsekk13]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk14=%d\", JatekosInfo[playerid][pCsekk14]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"pCsekk15=%d\", JatekosInfo[playerid][pCsekk15]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"MotelSzoba=%d\", JatekosInfo[playerid][pCsekk11]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Bankkartya=%d\", JatekosInfo[playerid][pCsekk12]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"MotelSzobaban=%d\", JatekosInfo[playerid][pCsekk13]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Bizniszben=%d\", JatekosInfo[playerid][pCsekk14]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Vezetes=%d\", JatekosInfo[playerid][pCsekk15]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Repules=%d\", JatekosInfo[playerid][pCsekk12]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"Colt45Kivetel=%d\", JatekosInfo[playerid][pCsekk13]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"ShotgunKivetel=%d\", JatekosInfo[playerid][pCsekk14]);
fwrite(playerfile, filestr);
format(filestr, sizeof filestr, \"RifleKivetel=%d\", JatekosInfo[playerid][pCsekk15]);
fwrite(playerfile, filestr);
GetPlayerWeaponData(playerid, 1, FegyverInfo[playerid][Fegyver1], FegyverInfo[playerid][Fegyver1a]);
GetPlayerWeaponData(playerid, 2, FegyverInfo[playerid][Fegyver2], FegyverInfo[playerid][Fegyver2a]);
GetPlayerWeaponData(playerid, 3, FegyverInfo[playerid][Fegyver3], FegyverInfo[playerid][Fegyver3a]);
GetPlayerWeaponData(playerid, 4, FegyverInfo[playerid][Fegyver4], FegyverInfo[playerid][Fegyver4a]);
GetPlayerWeaponData(playerid, 5, FegyverInfo[playerid][Fegyver5], FegyverInfo[playerid][Fegyver5a]);
GetPlayerWeaponData(playerid, 6, FegyverInfo[playerid][Fegyver6], FegyverInfo[playerid][Fegyver6a]);
GetPlayerWeaponData(playerid, 7, FegyverInfo[playerid][Fegyver7], FegyverInfo[playerid][Fegyver7a]);
GetPlayerWeaponData(playerid, 8, FegyverInfo[playerid][Fegyver8], FegyverInfo[playerid][Fegyver8a]);
GetPlayerWeaponData(playerid, 9, FegyverInfo[playerid][Fegyver9], FegyverInfo[playerid][Fegyver9a]);
GetPlayerWeaponData(playerid, 10, FegyverInfo[playerid][Fegyver10], FegyverInfo[playerid][Fegyver10a]);
GetPlayerWeaponData(playerid, 11, FegyverInfo[playerid][Fegyver11], FegyverInfo[playerid][Fegyver11a]);
GetPlayerWeaponData(playerid, 12, FegyverInfo[playerid][Fegyver12], FegyverInfo[playerid][Fegyver12a]);
format(filestr, sizeof filestr, \"Fegyver1=%d\",FegyverInfo[playerid][Fegyver1]);
format(filestr, sizeof filestr, \"Fegyver1a=%d\",FegyverInfo[playerid][Fegyver1a]);
format(filestr, sizeof filestr, \"Fegyver2=%d\",FegyverInfo[playerid][Fegyver2]);
format(filestr, sizeof filestr, \"Fegyver2a=%d\",FegyverInfo[playerid][Fegyver2a]);
format(filestr, sizeof filestr, \"Fegyver3=%d\",FegyverInfo[playerid][Fegyver3]);
format(filestr, sizeof filestr, \"Fegyver3a=%d\",FegyverInfo[playerid][Fegyver3a]);
format(filestr, sizeof filestr, \"Fegyver4=%d\",FegyverInfo[playerid][Fegyver4]);
format(filestr, sizeof filestr, \"Fegyver4a=%d\",FegyverInfo[playerid][Fegyver4a]);
format(filestr, sizeof filestr, \"Fegyver5=%d\",FegyverInfo[playerid][Fegyver5]);
format(filestr, sizeof filestr, \"Fegyver5a=%d\",FegyverInfo[playerid][Fegyver5a]);
format(filestr, sizeof filestr, \"Fegyver6=%d\",FegyverInfo[playerid][Fegyver6]);
format(filestr, sizeof filestr, \"Fegyver6a=%d\",FegyverInfo[playerid][Fegyver6a]);
format(filestr, sizeof filestr, \"Fegyver7=%d\",FegyverInfo[playerid][Fegyver7]);
format(filestr, sizeof filestr, \"Fegyver7a=%d\",FegyverInfo[playerid][Fegyver7a]);
format(filestr, sizeof filestr, \"Fegyver8=%d\",FegyverInfo[playerid][Fegyver8]);
format(filestr, sizeof filestr, \"Fegyver8a=%d\",FegyverInfo[playerid][Fegyver8a]);
format(filestr, sizeof filestr, \"Fegyver9=%d\",FegyverInfo[playerid][Fegyver9]);
format(filestr, sizeof filestr, \"Fegyver9a=%d\",FegyverInfo[playerid][Fegyver9a]);
format(filestr, sizeof filestr, \"Fegyver10=%d\",FegyverInfo[playerid][Fegyver10]);
format(filestr, sizeof filestr, \"Fegyver10a=%d\",FegyverInfo[playerid][Fegyver10a]);
format(filestr, sizeof filestr, \"Fegyver11=%d\",FegyverInfo[playerid][Fegyver11]);
format(filestr, sizeof filestr, \"Fegyver11a=%d\",FegyverInfo[playerid][Fegyver11a]);
format(filestr, sizeof filestr, \"Fegyver12=%d\",FegyverInfo[playerid][Fegyver12]);
format(filestr, sizeof filestr, \"Fegyver12a=%d\",FegyverInfo[playerid][Fegyver12a]);
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehid = GetPlayerVehicleID(playerid);
new Float:vehx,Float:vehy,Float:vehz,Float:forgatas;
GetVehiclePos(vehid,vehx,vehy,vehz);
GetVehicleZAngle(vehid,forgatas);
format(filestr, sizeof(filestr), \"Adatbazis/Jarmuvek/%d.ini\", JarmuInfo[vehid][iD]);
new File:vehfile = fopen(filestr, io_write);
if(vehfile)
{
format(filestr, sizeof filestr, \"X=%f\", vehx);
format(filestr, sizeof filestr, \"Y=%f\", vehy);
format(filestr, sizeof filestr, \"Z=%f\", vehz);
format(filestr, sizeof filestr, \"Forgatás=%f\", forgatas);
format(filestr, sizeof filestr, \"Eladva=%d\",JarmuInfo[vehid][Eladva]);
format(filestr, sizeof filestr, \"Megsemmisult=%d\", JarmuInfo[vehid][Megsemmisult]);
}
}
}
}
}
}
automatikus mentés helyett kitörli.Miért?