stock SaveFegyver(playerid){new weapons[13][2];new FileName[128];for (new i = 0; i < 13; i++) {format(FileName, sizeof(FileName), \"Fegyverek/%s.ini\", i);if(dini_Exists(FileName)){ GetPlayerWeaponData(playerid, i, weapons[0], weapons[1]); dini_IntSet(FileName, \"Weapon1\", weapons[0][0]); dini_IntSet(FileName, \"Ammo1\", weapons[0][1]); dini_IntSet(FileName, \"Weapon2\", weapons[1][0]); dini_IntSet(FileName, \"Ammo2\", weapons[1][1]); dini_IntSet(FileName, \"Weapon3\", weapons[2][0]); dini_IntSet(FileName, \"Ammo3\", weapons[2][1]); dini_IntSet(FileName, \"Weapon4\", weapons[3][0]); dini_IntSet(FileName, \"Ammo4\", weapons[3][1]); dini_IntSet(FileName, \"Weapon5\", weapons[4][0]); dini_IntSet(FileName, \"Ammo5\", weapons[4][1]); dini_IntSet(FileName, \"Weapon6\", weapons[5][0]); dini_IntSet(FileName, \"Ammo6\", weapons[5][1]); dini_IntSet(FileName, \"Weapon7\", weapons[6][0]); dini_IntSet(FileName, \"Ammo7\", weapons[6][1]); dini_IntSet(FileName, \"Weapon8\", weapons[7][0]); dini_IntSet(FileName, \"Ammo8\", weapons[7][1]); dini_IntSet(FileName, \"Weapon9\", weapons[8][0]); dini_IntSet(FileName, \"Ammo9\", weapons[8][1]); dini_IntSet(FileName, \"Weapon10\", weapons[9][0]); dini_IntSet(FileName, \"Ammo10\", weapons[9][1]); dini_IntSet(FileName, \"Weapon11\", weapons[10][0]); dini_IntSet(FileName, \"Ammo11\", weapons[10][1]); dini_IntSet(FileName, \"Weapon12\", weapons[11][0]); dini_IntSet(FileName, \"Ammo12\", weapons[11][1]); } }return 1;}
SaveFegyver(playerid);
if(!fexist(FileName)) { dini_Create(FileName); } else { }
stock SaveFegyver(playerid){new weapons[13][2];new FileName[128];for (new i = 0; i < 13; i++) {format(FileName, sizeof(FileName), \"Fegyverek/%s.ini\", i);if(dini_Exists(FileName)){ GetPlayerWeaponData(playerid, i, weapons[0], weapons[1]); dini_IntSet(FileName, \"Weapon1\", weapons[0][0]); dini_IntSet(FileName, \"Ammo1\", weapons[0][1]); dini_IntSet(FileName, \"Weapon2\", weapons[1][0]); dini_IntSet(FileName, \"Ammo2\", weapons[1][1]); dini_IntSet(FileName, \"Weapon3\", weapons[2][0]); dini_IntSet(FileName, \"Ammo3\", weapons[2][1]); dini_IntSet(FileName, \"Weapon4\", weapons[3][0]); dini_IntSet(FileName, \"Ammo4\", weapons[3][1]); dini_IntSet(FileName, \"Weapon5\", weapons[4][0]); dini_IntSet(FileName, \"Ammo5\", weapons[4][1]); dini_IntSet(FileName, \"Weapon6\", weapons[5][0]); dini_IntSet(FileName, \"Ammo6\", weapons[5][1]); dini_IntSet(FileName, \"Weapon7\", weapons[6][0]); dini_IntSet(FileName, \"Ammo7\", weapons[6][1]); dini_IntSet(FileName, \"Weapon8\", weapons[7][0]); dini_IntSet(FileName, \"Ammo8\", weapons[7][1]); dini_IntSet(FileName, \"Weapon9\", weapons[8][0]); dini_IntSet(FileName, \"Ammo9\", weapons[8][1]); dini_IntSet(FileName, \"Weapon10\", weapons[9][0]); dini_IntSet(FileName, \"Ammo10\", weapons[9][1]); dini_IntSet(FileName, \"Weapon11\", weapons[10][0]); dini_IntSet(FileName, \"Ammo11\", weapons[10][1]); dini_IntSet(FileName, \"Weapon12\", weapons[11][0]); dini_IntSet(FileName, \"Ammo12\", weapons[11][1]); }else dini_Create(FileName); }return 1;}
Weapon1=0Ammo1=0Weapon2=0Ammo2=0Weapon3=0Ammo3=0Weapon4=0Ammo4=0Weapon5=0Ammo5=0Weapon6=0Ammo6=0Weapon7=0Ammo7=0Weapon8=0Ammo8=0Weapon9=0Ammo9=0Weapon10=0Ammo10=0Weapon11=0Ammo11=0Weapon12=0Ammo12=0
new Nev[MAX_PLAYER_NAME+1];GetPlayerName(playerid, Nev, sizeof(Nev));format.... //Itt az i helyére Nev.