Accounts problem
#1

Hi guys, i have server and sometimes players say to me to they account password is not they password and that is not 1 player its about 20 player say that, so what can be to cause that?
Reply
#2

Post your code, otherwise none can help you.
Reply
#3

Are we meant to guess your code?
Reply
#4

on player register:
Код:
public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
			    strmid(PI[playerid][pKey], password, 0, strlen(password), 255);
			    new var[64];
				format(var, 64, "Key=%s\n", PI[playerid][pKey]);fwrite(hFile, var);
				format(var, 64, "Email=%s\n", PI[playerid][pEmail]);fwrite(hFile, var);
				PI[playerid][pCash] =JBC_GetPlayerMoney(playerid);
				format(var, 64, "Level=%d\n",PI[playerid][pLevel]);fwrite(hFile, var);
				format(var, 64, "AdminLevel=%d\n",PI[playerid][pOSC]);fwrite(hFile, var);
				format(var, 64, "Naocare=%d\n",PI[playerid][pNaocale]);fwrite(hFile, var);
				format(var, 64, "DonateRank=%d\n",PI[playerid][pDonateRank]);fwrite(hFile, var);
				format(var, 64, "UpgradePoints=%d\n",PI[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 64, "ConnectedTime=%d\n",PI[playerid][pConnectTime]);fwrite(hFile, var);
				format(var, 64, "Registered=%d\n",PI[playerid][pReg]);fwrite(hFile, var);
				format(var, 64, "Sex=%d\n",PI[playerid][pSex]);fwrite(hFile, var);
				format(var, 64, "Age=%d\n",PI[playerid][pAge]);fwrite(hFile, var);
				format(var, 64, "Origin=%d\n",PI[playerid][pOrigin]);fwrite(hFile, var);
				format(var, 64, "CK=%d\n",PI[playerid][pCK]);fwrite(hFile, var);
				format(var, 64, "Muted=%d\n",PI[playerid][pMuted]);fwrite(hFile, var);
				format(var, 64, "AllowVipPort=%d\n",PI[playerid][pAllowVipPort]);fwrite(hFile, var);
				format(var, 64, "ADMuted=%d\n",PI[playerid][pADMuted]);fwrite(hFile, var);
				format(var, 64, "Respect=%d\n",PI[playerid][pExp]);fwrite(hFile, var);
				format(var, 64, "Money=%d\n",PI[playerid][pCash]);fwrite(hFile, var);
				format(var, 64, "Bank=%d\n",PI[playerid][pAccount]);fwrite(hFile, var);
				format(var, 64, "Crimes=%d\n",PI[playerid][pCrimes]);fwrite(hFile, var);
				format(var, 64, "Kills=%d\n",PI[playerid][pKills]);fwrite(hFile, var);
				format(var, 64, "Deaths=%d\n",PI[playerid][pDeaths]);fwrite(hFile, var);
				format(var, 64, "Arrested=%d\n",PI[playerid][pArrested]);fwrite(hFile, var);
				format(var, 64, "WantedDeaths=%d\n",PI[playerid][pWantedDeaths]);fwrite(hFile, var);
				format(var, 64, "Phonebook=%d\n",PI[playerid][pPhoneBook]);fwrite(hFile, var);
				format(var, 64, "LottoNr=%d\n",PI[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 64, "LottoNr2=%d\n",PI[playerid][pLottoNr2]);fwrite(hFile, var);
				format(var, 64, "LottoNr3=%d\n",PI[playerid][pLottoNr3]);fwrite(hFile, var);
				format(var, 64, "LottoNr4=%d\n",PI[playerid][pLottoNr4]);fwrite(hFile, var);
				format(var, 64, "LottoNr5=%d\n",PI[playerid][pLottoNr5]);fwrite(hFile, var);
				format(var, 64, "LottoNr6=%d\n",PI[playerid][pLottoNr6]);fwrite(hFile, var);
				format(var, 64, "LottoNr7=%d\n",PI[playerid][pLottoNr7]);fwrite(hFile, var);
				format(var, 64, "KazinoNr=%d\n",PI[playerid][pKazinoNr]);fwrite(hFile, var);
				format(var, 64, "Kladionica=%d\n",PI[playerid][pKladionica]);fwrite(hFile, var);
				format(var, 64, "Fishes=%d\n",PI[playerid][pFishes]);fwrite(hFile, var);
				format(var, 64, "BiggestFish=%d\n",PI[playerid][pBiggestFish]);fwrite(hFile, var);
				format(var, 64, "Job=%d\n",PI[playerid][pJob]);fwrite(hFile, var);
				format(var, 64, "Paycheck=%d\n",PI[playerid][pPayCheck]);fwrite(hFile, var);
				format(var, 64, "HeadValue=%d\n",PI[playerid][pHeadValue]);fwrite(hFile, var);
				format(var, 64, "Jailed=%d\n",PI[playerid][pJailed]);fwrite(hFile, var);
				format(var, 64, "JailTime=%d\n",PI[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 64, "RobBre=%d\n",PI[playerid][pRobBre]);fwrite(hFile, var);
				format(var, 64, "RegVozilo1=%d\n",PI[playerid][pRegVozilo1]);fwrite(hFile, var);
				format(var, 64, "RegVozilo2=%d\n",PI[playerid][pRegVozilo2]);fwrite(hFile, var);
				format(var, 64, "RegVozilo3=%d\n",PI[playerid][pRegVozilo3]);fwrite(hFile, var);
				format(var, 64, "Struja=%d\n",PI[playerid][pStruja]);fwrite(hFile, var);
				format(var, 64, "Komunalija=%d\n",PI[playerid][pKomun]);fwrite(hFile, var);
				format(var, 64, "Voda=%d\n",PI[playerid][pVoda]);fwrite(hFile, var);
				format(var, 64, "KaucijaCena=%d\n",PI[playerid][pKaucijaCena]);fwrite(hFile, var);
				format(var, 64, "Flasa=%d\n",PI[playerid][pFlasa]);fwrite(hFile, var);
				format(var, 64, "LottoNovac=%d\n",PI[playerid][pLottoNovac]);fwrite(hFile, var);
				format(var, 64, "BorbeniStil=%d\n",PI[playerid][pBorbeniStil]);fwrite(hFile, var);
				format(var, 64, "Licna=%d\n",PI[playerid][pLicna]);fwrite(hFile, var);
				format(var, 64, "GPS=%d\n",PI[playerid][pGPS]);fwrite(hFile, var);
				format(var, 64, "PinKod=%d\n",PI[playerid][pPinKod]);fwrite(hFile, var);
				format(var, 64, "Lanac=%d\n",PI[playerid][pLanac]);fwrite(hFile, var);
				format(var, 64, "Kazna=%d\n",PI[playerid][pKazna]);fwrite(hFile, var);
				format(var, 64, "BankKredit=%d\n",PI[playerid][pBankKredit]);fwrite(hFile, var);
				format(var, 64, "Sekretar=%d\n",PI[playerid][pSekretar]);fwrite(hFile, var);
				format(var, 64, "PlataPoen=%d\n",PI[playerid][pPlataPoen]);fwrite(hFile, var);
				format(var, 64, "Rentao=%d\n",PI[playerid][pRentao]);fwrite(hFile, var);
				format(var, 64, "Lider=%d\n",PI[playerid][pLider]);fwrite(hFile, var);
				format(var, 64, "Plata=%d\n",PI[playerid][pPlata]);fwrite(hFile, var);
				format(var, 64, "DoniranSlot=%d\n",PI[playerid][pDoniranSlot]);fwrite(hFile, var);
				format(var, 64, "Zoki=%d\n",PI[playerid][pNocke]);fwrite(hFile, var);
				format(var, 64, "Davac=%d\n",PI[playerid][pDavac]);fwrite(hFile, var);
				format(var, 64, "Odobrenje=%d\n",PI[playerid][pOdobrenje]);fwrite(hFile, var);
				format(var, 64, "Dani=%d\n",PI[playerid][pDani]);fwrite(hFile, var);
				format(var, 64, "Penzioner=%d\n",PI[playerid][pPenzioner]);fwrite(hFile, var);
				format(var, 64, "Bezanje=%d\n",PI[playerid][pBezanje]);fwrite(hFile, var);
				format(var, 64, "Jarac=%d\n",PI[playerid][pJarac]);fwrite(hFile, var);
				format(var, 64, "MenjanEmail=%d\n",PI[playerid][pMenjanEmail]);fwrite(hFile, var);
				format(var, 64, "UzeoSocijalu=%d\n",PI[playerid][pUzeoSocijalu]);fwrite(hFile, var);
				format(var, 64, "Pasos=%d\n",PI[playerid][pPasos]);fwrite(hFile, var);
				format(var, 64, "OrgInt=%d\n",PI[playerid][pOrgInt]);fwrite(hFile, var);
				format(var, 64, "Muzac=%d\n",PI[playerid][pMuzac]);fwrite(hFile, var);
				format(var, 64, "Commands=%d\n",PI[playerid][pCommands]);fwrite(hFile, var);
				format(var, 64, "Newsare=%d\n",PI[playerid][pNewsare]);fwrite(hFile, var);
				format(var, 64, "HighSkill=%d\n",PI[playerid][pHighSkill]);fwrite(hFile, var);
				format(var, 64, "Porez1=%d\n",PI[playerid][pPorez1]);fwrite(hFile, var);
				format(var, 64, "Porez2=%d\n",PI[playerid][pPorez2]);fwrite(hFile, var);
				format(var, 64, "Porez3=%d\n",PI[playerid][pPorez3]);fwrite(hFile, var);
				format(var, 64, "RobijaJailed=%d\n",PI[playerid][pRobijaJailed]);fwrite(hFile, var);
				format(var, 64, "Novcanik=%d\n",PI[playerid][pNovcanik]);fwrite(hFile, var);
				format(var, 64, "Banned=%d\n",PI[playerid][pBanned]);fwrite(hFile, var);
				format(var, 64, "Kaznjavan=%d\n",PI[playerid][pKaznjavan]);fwrite(hFile, var);
				format(var, 64, "CarLic=%d\n",PI[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 64, "FlyLic=%d\n",PI[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 64, "BoatLic=%d\n",PI[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 64, "FishLic=%d\n",PI[playerid][pFishLic]);fwrite(hFile, var);
				format(var, 64, "GunLic=%d\n",PI[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 64, "Alat=%d\n",PI[playerid][pAlat]);fwrite(hFile, var);
				format(var, 64, "Adminkazna=%d\n",PI[playerid][pOSCkazna]);fwrite(hFile, var);
				format(var, 64, "Faktura=%d\n",PI[playerid][pFaktura]);fwrite(hFile, var);
				format(var, 64, "sFaktura=%d\n",PI[playerid][psFaktura]);fwrite(hFile, var);
				format(var, 64, "XLos=%d\n",PI[playerid][pXLos]);fwrite(hFile, var);
				format(var, 64, "Bolest1=%d\n",PI[playerid][pBolest1]);fwrite(hFile, var);
				format(var, 64, "Tazovan=%d\n",PI[playerid][pTazovan]);fwrite(hFile, var);
				format(var, 64, "Walk=%d\n",PI[playerid][pWalk]);fwrite(hFile, var);
				format(var, 64, "Voda1=%d\n",PI[playerid][pVoda1]);fwrite(hFile, var);
				format(var, 64, "Cips=%d\n",PI[playerid][pCips]);fwrite(hFile, var);
				format(var, 64, "Cokolada=%d\n",PI[playerid][pCokolada]);fwrite(hFile, var);
				format(var, 64, "Hleb=%d\n",PI[playerid][pHleb]);fwrite(hFile, var);
				format(var, 64, "PrvaPomoc=%d\n",PI[playerid][pPrvaPomoc]);fwrite(hFile, var);
				format(var, 64, "Sendvic=%d\n",PI[playerid][pSendvic]);fwrite(hFile, var);
				format(var, 64, "Pizza=%d\n",PI[playerid][pPizza]);fwrite(hFile, var);
				format(var, 64, "Kokakola=%d\n",PI[playerid][pKokakola]);fwrite(hFile, var);
				format(var, 64, "RobijaTime=%d\n",PI[playerid][pRobijaTime]);fwrite(hFile, var);
				format(var, 64, "Materials=%d\n",PI[playerid][pMats]);fwrite(hFile, var);
				format(var, 64, "Drugs=%d\n",PI[playerid][pDrugs]);fwrite(hFile, var);
				format(var, 64, "Osiguranja=%d\n",PI[playerid][pPosiguranje]);fwrite(hFile, var);
				format(var, 64, "Polaganje1=%d\n",PI[playerid][pPolaganje1]);fwrite(hFile, var);
				format(var, 64, "Polaganje2=%d\n",PI[playerid][pPolaganje2]);fwrite(hFile, var);
				format(var, 64, "Polaganje3=%d\n",PI[playerid][pPolaganje3]);fwrite(hFile, var);
				format(var, 64, "PistSkill=%d\n",PI[playerid][pPistSkill]);fwrite(hFile, var);
				format(var, 64, "SilenSkill=%d\n",PI[playerid][pSilenSkill]);fwrite(hFile, var);
				format(var, 64, "ShotgSkill=%d\n",PI[playerid][pShotgSkill]);fwrite(hFile, var);
				format(var, 64, "SawnSkill=%d\n",PI[playerid][pSawnSkill]);fwrite(hFile, var);
				format(var, 64, "CombSkill=%d\n",PI[playerid][pCombSkill]);fwrite(hFile, var);
				format(var, 64, "UziSkill=%d\n",PI[playerid][pUziSkill]);fwrite(hFile, var);
				format(var, 64, "SmgSkill=%d\n",PI[playerid][pSmgSkill]);fwrite(hFile, var);
				format(var, 64, "AKSkill=%d\n",PI[playerid][pAkSkill]);fwrite(hFile, var);
				format(var, 64, "M4Skill=%d\n",PI[playerid][pM4Skill]);fwrite(hFile, var);
				format(var, 64, "DesertSkill=%d\n",PI[playerid][pDesertSkill]);fwrite(hFile, var);
				format(var, 64, "AmmuTrainTime=%d\n",PI[playerid][pAmmuTrainTime]);fwrite(hFile, var);
				format(var, 64, "RPRank=%d\n",PI[playerid][pSPRank]);fwrite(hFile, var);
				format(var, 64, "Leader=%d\n",PI[playerid][pLeader]);fwrite(hFile, var);
				format(var, 64, "Member=%d\n",PI[playerid][pMember]);fwrite(hFile, var);
				format(var, 64, "FMember=%d\n",PI[playerid][pFMember]);fwrite(hFile, var);
				format(var, 64, "Rank=%d\n",PI[playerid][pRank]);fwrite(hFile, var);
				format(var, 64, "Char=%d\n",PI[playerid][pChar]);fwrite(hFile, var);
				format(var, 64, "ContractTime=%d\n",PI[playerid][pContractTime]);fwrite(hFile, var);
				format(var, 64, "DetSkill=%d\n",PI[playerid][pDetSkill]);fwrite(hFile, var);
				format(var, 64, "SexSkill=%d\n",PI[playerid][pSexSkill]);fwrite(hFile, var);
				format(var, 64, "BoxSkill=%d\n",PI[playerid][pBoxSkill]);fwrite(hFile, var);
				format(var, 64, "LawSkill=%d\n",PI[playerid][pLawSkill]);fwrite(hFile, var);
				format(var, 64, "MechSkill=%d\n",PI[playerid][pMechSkill]);fwrite(hFile, var);
				format(var, 64, "JackSkill=%d\n",PI[playerid][pJackSkill]);fwrite(hFile, var);
				format(var, 64, "CarSkill=%d\n",PI[playerid][pCarSkill]);fwrite(hFile, var);
				format(var, 64, "NewsSkill=%d\n",PI[playerid][pNewsSkill]);fwrite(hFile, var);
				format(var, 64, "DrugsSkill=%d\n",PI[playerid][pDrugsSkill]);fwrite(hFile, var);
				format(var, 64, "CookSkill=%d\n",PI[playerid][pCookSkill]);fwrite(hFile, var);
				format(var, 64, "FishSkill=%d\n",PI[playerid][pFishSkill]);fwrite(hFile, var);
				format(var, 64, "pSHealth=%.1f\n",PI[playerid][pSHealth]);fwrite(hFile, var);
	            GetPlayerHealth(playerid,PI[playerid][pHealth]);
				format(var, 64, "pHealth=%.1f\n",PI[playerid][pHealth]);fwrite(hFile, var);
				format(var, 64, "Int=%d\n",PI[playerid][pInt]);fwrite(hFile, var);
				format(var, 64, "Local=%d\n",PI[playerid][pLocal]);fwrite(hFile, var);
				format(var, 64, "Team=%d\n",PI[playerid][pTeam]);fwrite(hFile, var);
				format(var, 64, "Model=%d\n",PI[playerid][pModel]);fwrite(hFile, var);
				format(var, 64, "PhoneNr=%d\n",PI[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 64, "VerCode=%d\n",PI[playerid][pVerCode]);fwrite(hFile, var);
				format(var, 64, "House=%d\n",PI[playerid][pKljucKuce]);fwrite(hFile, var);
				format(var, 64, "Stan=%d\n",PI[playerid][pKljucStana]);fwrite(hFile, var);
				format(var, 64, "Bizz=%d\n",PI[playerid][pKljucFirme]);fwrite(hFile, var);
				format(var, 64, "Ulica=%d\n",PI[playerid][pUlica]);fwrite(hFile, var);
				format(var, 64, "Helper=%d\n",PI[playerid][pHelper]);fwrite(hFile, var);
				format(var, 64, "Ministar=%d\n",PI[playerid][pMinistar]);fwrite(hFile, var);
				format(var, 64, "ObicanIgrac=%d\n",PI[playerid][pObicanIgrac]);fwrite(hFile, var);
				format(var, 64, "Promoter=%d\n",PI[playerid][pPromoter]);fwrite(hFile, var);
				format(var, 64, "Vip=%d\n",PI[playerid][pVip]);fwrite(hFile, var);
				format(var, 64, "Viptime=%d\n",PI[playerid][pViptime]);fwrite(hFile, var);
				format(var, 64, "Mapper=%d\n",PI[playerid][pMapper]);fwrite(hFile, var);
				format(var, 64, "MobileBon=%d\n",PI[playerid][pMobileBon]);fwrite(hFile, var);
				format(var, 64, "Zlato=%d\n",PI[playerid][pZlato]);fwrite(hFile, var);
				format(var, 64, "Kazneni=%d\n",PI[playerid][pKazneni]);fwrite(hFile, var);
				format(var, 64, "Zvake=%d\n",PI[playerid][pZvake]);fwrite(hFile, var);
				format(var, 64, "Spawn=%d\n",PI[playerid][pSpawn]);fwrite(hFile, var);
				format(var, 64, "Frizura=%d\n", PI[playerid][pFrizura]);fwrite(hFile, var);
				format(var, 64, "CarKey=%d\n", PI[playerid][pPcarkey]);fwrite(hFile, var);
				format(var, 64, "CarKey2=%d\n", PI[playerid][pPcarkey2]);fwrite(hFile, var);
				format(var, 64, "CarKey3=%d\n", PI[playerid][pPcarkey3]);fwrite(hFile, var);
				format(var, 64, "ImanjeID=%d\n", PI[playerid][pImaImanje]);fwrite(hFile, var);
				format(var, 64, "Sljiva=%d\n",PI[playerid][pSjemeSljiva]);fwrite(hFile, var);
				format(var, 64, "Krusaka=%d\n",PI[playerid][pSjemeKruska]);fwrite(hFile, var);
				format(var, 64, "Jabuka=%d\n",PI[playerid][pSjemeJabuka]);fwrite(hFile, var);
				format(var, 64, "pSljiva=%d\n",PI[playerid][pSljiva]);fwrite(hFile, var);
				format(var, 64, "pKrusaka=%d\n",PI[playerid][pKrusaka]);fwrite(hFile, var);
				format(var, 64, "pJabuka=%d\n",PI[playerid][pJabuka]);fwrite(hFile, var);
				if ((PI[playerid][pPos_x]==0.0 && PI[playerid][pPos_y]==0.0 && PI[playerid][pPos_z]==0.0))
				{
				    PI[playerid][pPos_x] = 1684.9;
					PI[playerid][pPos_y] = -2244.5;
					PI[playerid][pPos_z] = 13.5;
				}
				if(Spectate[playerid] != 255)
				{
					PI[playerid][pPos_x] = Unspec[playerid][sPx];
					PI[playerid][pPos_y] = Unspec[playerid][sPy];
					PI[playerid][pPos_z] = Unspec[playerid][sPz];
					PI[playerid][pInt] = Unspec[playerid][sPint];
					PI[playerid][pLocal] = Unspec[playerid][sLocal];
				}
				format(var, 64, "Pos_x=%.1f\n",PI[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 64, "Pos_y=%.1f\n",PI[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 64, "Pos_z=%.1f\n",PI[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 64, "Gun1=%d\n",PI[playerid][pGun1]);fwrite(hFile, var);
				format(var, 64, "Gun2=%d\n",PI[playerid][pGun2]);fwrite(hFile, var);
				format(var, 64, "Gun3=%d\n",PI[playerid][pGun3]);fwrite(hFile, var);
				format(var, 64, "Gun4=%d\n",PI[playerid][pGun4]);fwrite(hFile, var);
				format(var, 64, "Ammo1=%d\n",PI[playerid][pAmmo1]);fwrite(hFile, var);
				format(var, 64, "Ammo2=%d\n",PI[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 64, "Ammo3=%d\n",PI[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 64, "Ammo4=%d\n",PI[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 64, "CarTime=%d\n",PI[playerid][pCarTime]);fwrite(hFile, var);
				format(var, 64, "PayDay=%d\n",PI[playerid][pPayDay]);fwrite(hFile, var);
				format(var, 64, "PayDayHad=%d\n",PI[playerid][pPayDayHad]);fwrite(hFile, var);
				format(var, 64, "Watch=%d\n",PI[playerid][pWatch]);fwrite(hFile, var);
				format(var, 64, "Crashed=%d\n",PI[playerid][pCrashed]);fwrite(hFile, var);
				format(var, 64, "Wins=%d\n",PI[playerid][pWins]);fwrite(hFile, var);
				format(var, 64, "Loses=%d\n",PI[playerid][pLoses]);fwrite(hFile, var);
				format(var, 64, "AlcoholPerk=%d\n",PI[playerid][pAlcoholPerk]);fwrite(hFile, var);
				format(var, 64, "DrugPerk=%d\n",PI[playerid][pDrugPerk]);fwrite(hFile, var);
				format(var, 64, "MiserPerk=%d\n",PI[playerid][pMiserPerk]);fwrite(hFile, var);
				format(var, 64, "PainPerk=%d\n",PI[playerid][pPainPerk]);fwrite(hFile, var);
				format(var, 64, "TraderPerk=%d\n",PI[playerid][pTraderPerk]);fwrite(hFile, var);
				format(var, 64, "Tutorial=%d\n",PI[playerid][pTut]);fwrite(hFile, var);
				format(var, 64, "Mission=%d\n",PI[playerid][pMissionNr]);fwrite(hFile, var);
				format(var, 64, "Warnings=%d\n",PI[playerid][pWarns]);fwrite(hFile, var);
				format(var, 64, "VirWorld=%d\n",PI[playerid][pVirWorld]);fwrite(hFile, var);
				format(var, 64, "Fuel=%d\n",PI[playerid][pFuel]);fwrite(hFile, var);
				format(var, 64, "Married=%d\n",PI[playerid][pMarried]);fwrite(hFile, var);
				format(var, 64, "MarriedTo=%s\n",PI[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 64, "FishTool=%d\n",PI[playerid][pFishTool]);fwrite(hFile, var);
    			format(var, 64, "Note1=%s\n",PI[playerid][pNote1]);fwrite(hFile, var);
				format(var, 64, "Note1s=%d\n",PI[playerid][pNote1s]);fwrite(hFile, var);
				format(var, 64, "Note2=%s\n",PI[playerid][pNote2]);fwrite(hFile, var);
				format(var, 64, "Note2s=%d\n",PI[playerid][pNote2s]);fwrite(hFile, var);
				format(var, 64, "Note3=%s\n",PI[playerid][pNote3]);fwrite(hFile, var);
				format(var, 64, "Note3s=%d\n",PI[playerid][pNote3s]);fwrite(hFile, var);
				format(var, 64, "Note4=%s\n",PI[playerid][pNote4]);fwrite(hFile, var);
				format(var, 64, "Note4s=%d\n",PI[playerid][pNote4s]);fwrite(hFile, var);
				format(var, 64, "Note5=%s\n",PI[playerid][pNote5]);fwrite(hFile, var);
				format(var, 64, "Note5s=%d\n",PI[playerid][pNote5s]);fwrite(hFile, var);
				format(var, 64, "InvWeapon=%d\n",PI[playerid][pInvWeapon]);fwrite(hFile, var);
				format(var, 64, "InvAmmo=%d\n",PI[playerid][pInvAmmo]);fwrite(hFile, var);
				format(var, 64, "Lighter=%d\n",PI[playerid][pLighter]);fwrite(hFile, var);
				format(var, 64, "Cigarettes=%d\n",PI[playerid][pCigarettes]);fwrite(hFile, var);
				format(var, 64, "Locked=%d\n",PI[playerid][pLocked]);fwrite(hFile, var);
				format(var, 64, "Zlato=%d\n",PI[playerid][pZlato]);fwrite(hFile, var);
				format(var, 64, "Kazneni=%d\n",PI[playerid][pKazneni]);fwrite(hFile, var);
				format(var, 64, "MobileBon=%d\n",PI[playerid][pMobileBon]);fwrite(hFile, var);
                format(var, 64, "Zvake=%d\n",PI[playerid][pZvake]);fwrite(hFile, var);
				fclose(hFile);
				Simb1[playerid] = random(sizeof(VerifikacijaCode));
		Simb2[playerid] = random(sizeof(VerifikacijaCode));
		Simb3[playerid] = random(sizeof(VerifikacijaCode));
		Simb4[playerid] = random(sizeof(VerifikacijaCode));
		Simb5[playerid] = random(sizeof(VerifikacijaCode));
		Simb6[playerid] = random(sizeof(VerifikacijaCode));
		Simb7[playerid] = random(sizeof(VerifikacijaCode));
		Simb8[playerid] = random(sizeof(VerifikacijaCode));
		format(iVerCode[playerid], 32, "%s%s%s%s%s%s%s%s",
	VerifikacijaCode[Simb1[playerid]], VerifikacijaCode[Simb2[playerid]], VerifikacijaCode[Simb3[playerid]], VerifikacijaCode[Simb4[playerid]],
	VerifikacijaCode[Simb5[playerid]], VerifikacijaCode[Simb6[playerid]], VerifikacijaCode[Simb7[playerid]], VerifikacijaCode[Simb8[playerid]]);
		new verstring[500];
		new loginname[64];
		GetPlayerName(playerid,loginname,sizeof(loginname));
		strreplace(loginname, '_', ' ');
		format(verstring,sizeof(verstring),"{80C8FE}Dobrodosao {F81414}%s,{80C8FE}\nsada moras ukucati verifikacioni kod da bi nastavio registraciju,\nkoji ti pise ispod\n{F81414}VERIFICATION CODE: {80C8FE}%s%s%s%s%s%s%s%s\n\n{F81414}WARNING: OBRATI PAZNJU \nNA VELIKA I MALA SLOVA!!",
		loginname, VerifikacijaCode[Simb1[playerid]],VerifikacijaCode[Simb2[playerid]],VerifikacijaCode[Simb3[playerid]],VerifikacijaCode[Simb4[playerid]],VerifikacijaCode[Simb5[playerid]],VerifikacijaCode[Simb6[playerid]],VerifikacijaCode[Simb7[playerid]],VerifikacijaCode[Simb8[playerid]]);
		ShowPlayerDialog(playerid,12344,DIALOG_STYLE_INPUT,"Verifikacioni kod",verstring,"OK","Izadji");
			}
	}
	return 1;
}
saving player:
Код:
public SacuvajIgraca(playerid)
{
    if(IsPlayerConnected(playerid))
	{
		if(gPlayerLogged[playerid])
		{
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
				new var[64];
				format(var, 64, "Key=%s\n", PI[playerid][pKey]);fwrite(hFile, var);
				format(var, 64, "Email=%s\n", PI[playerid][pEmail]);fwrite(hFile, var);
				PI[playerid][pCash] = JBC_GetPlayerMoney(playerid);
				format(var, 64, "Level=%d\n",PI[playerid][pLevel]);fwrite(hFile, var);
				format(var, 64, "AdminLevel=%d\n",PI[playerid][pOSC]);fwrite(hFile, var);
				format(var, 64, "Naocare=%d\n",PI[playerid][pNaocale]);fwrite(hFile, var);
				format(var, 64, "DonateRank=%d\n",PI[playerid][pDonateRank]);fwrite(hFile, var);
				format(var, 64, "UpgradePoints=%d\n",PI[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 64, "ConnectedTime=%d\n",PI[playerid][pConnectTime]);fwrite(hFile, var);
				format(var, 64, "Registered=%d\n",PI[playerid][pReg]);fwrite(hFile, var);
				format(var, 64, "Sex=%d\n",PI[playerid][pSex]);fwrite(hFile, var);
				format(var, 64, "Age=%d\n",PI[playerid][pAge]);fwrite(hFile, var);
				format(var, 64, "Origin=%d\n",PI[playerid][pOrigin]);fwrite(hFile, var);
				format(var, 64, "CK=%d\n",PI[playerid][pCK]);fwrite(hFile, var);
				format(var, 64, "Muted=%d\n",PI[playerid][pMuted]);fwrite(hFile, var);
				format(var, 64, "AllowVipPort=%d\n",PI[playerid][pAllowVipPort]);fwrite(hFile, var);
				format(var, 64, "ADMuted=%d\n",PI[playerid][pADMuted]);fwrite(hFile, var);
				format(var, 64, "Respect=%d\n",PI[playerid][pExp]);fwrite(hFile, var);
				format(var, 64, "Money=%d\n",PI[playerid][pCash]);fwrite(hFile, var);
				format(var, 64, "Bank=%d\n",PI[playerid][pAccount]);fwrite(hFile, var);
				format(var, 64, "Crimes=%d\n",PI[playerid][pCrimes]);fwrite(hFile, var);
				format(var, 64, "Kills=%d\n",PI[playerid][pKills]);fwrite(hFile, var);
				format(var, 64, "Deaths=%d\n",PI[playerid][pDeaths]);fwrite(hFile, var);
				format(var, 64, "Arrested=%d\n",PI[playerid][pArrested]);fwrite(hFile, var);
				format(var, 64, "WantedDeaths=%d\n",PI[playerid][pWantedDeaths]);fwrite(hFile, var);
				format(var, 64, "Phonebook=%d\n",PI[playerid][pPhoneBook]);fwrite(hFile, var);
				format(var, 64, "LottoNr=%d\n",PI[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 64, "LottoNr2=%d\n",PI[playerid][pLottoNr2]);fwrite(hFile, var);
				format(var, 64, "LottoNr3=%d\n",PI[playerid][pLottoNr3]);fwrite(hFile, var);
				format(var, 64, "LottoNr4=%d\n",PI[playerid][pLottoNr4]);fwrite(hFile, var);
				format(var, 64, "LottoNr5=%d\n",PI[playerid][pLottoNr5]);fwrite(hFile, var);
				format(var, 64, "LottoNr6=%d\n",PI[playerid][pLottoNr6]);fwrite(hFile, var);
				format(var, 64, "LottoNr7=%d\n",PI[playerid][pLottoNr7]);fwrite(hFile, var);
				format(var, 64, "KazinoNr=%d\n",PI[playerid][pKazinoNr]);fwrite(hFile, var);
				format(var, 64, "KazinoNr=%d\n",PI[playerid][pKazinoNr]);fwrite(hFile, var);
				format(var, 64, "Kladionica=%d\n",PI[playerid][pKladionica]);fwrite(hFile, var);
				format(var, 64, "Fishes=%d\n",PI[playerid][pFishes]);fwrite(hFile, var);
				format(var, 64, "BiggestFish=%d\n",PI[playerid][pBiggestFish]);fwrite(hFile, var);
				format(var, 64, "Job=%d\n",PI[playerid][pJob]);fwrite(hFile, var);
				format(var, 64, "Paycheck=%d\n",PI[playerid][pPayCheck]);fwrite(hFile, var);
				format(var, 64, "HeadValue=%d\n",PI[playerid][pHeadValue]);fwrite(hFile, var);
				format(var, 64, "Jailed=%d\n",PI[playerid][pJailed]);fwrite(hFile, var);
				format(var, 64, "JailTime=%d\n",PI[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 64, "RobBre=%d\n",PI[playerid][pRobBre]);fwrite(hFile, var);
				//format(var, 64, "Bolnica=%d\n",PI[playerid][pBolnica]);fwrite(hFile, var);
				//format(var, 64, "Bolna=%d\n",PI[playerid][pBolna]);fwrite(hFile, var);
				format(var, 64, "RegVozilo1=%d\n",PI[playerid][pRegVozilo1]);fwrite(hFile, var);
				format(var, 64, "RegVozilo2=%d\n",PI[playerid][pRegVozilo2]);fwrite(hFile, var);
				format(var, 64, "RegVozilo3=%d\n",PI[playerid][pRegVozilo3]);fwrite(hFile, var);
				format(var, 64, "Struja=%d\n",PI[playerid][pStruja]);fwrite(hFile, var);
				format(var, 64, "Komunalija=%d\n",PI[playerid][pKomun]);fwrite(hFile, var);
				format(var, 64, "Voda=%d\n",PI[playerid][pVoda]);fwrite(hFile, var);
				format(var, 64, "KaucijaCena=%d\n",PI[playerid][pKaucijaCena]);fwrite(hFile, var);
				format(var, 64, "Flasa=%d\n",PI[playerid][pFlasa]);fwrite(hFile, var);
				format(var, 64, "LottoNovac=%d\n",PI[playerid][pLottoNovac]);fwrite(hFile, var);
				format(var, 64, "BorbeniStil=%d\n",PI[playerid][pBorbeniStil]);fwrite(hFile, var);
				format(var, 64, "Licna=%d\n",PI[playerid][pLicna]);fwrite(hFile, var);
				format(var, 64, "GPS=%d\n",PI[playerid][pGPS]);fwrite(hFile, var);
				format(var, 64, "PinKod=%d\n",PI[playerid][pPinKod]);fwrite(hFile, var);
				format(var, 64, "Lanac=%d\n",PI[playerid][pLanac]);fwrite(hFile, var);
				format(var, 64, "Kazna=%d\n",PI[playerid][pKazna]);fwrite(hFile, var);
				format(var, 64, "BankKredit=%d\n",PI[playerid][pBankKredit]);fwrite(hFile, var);
				format(var, 64, "Sekretar=%d\n",PI[playerid][pSekretar]);fwrite(hFile, var);
				format(var, 64, "PlataPoen=%d\n",PI[playerid][pPlataPoen]);fwrite(hFile, var);
				format(var, 64, "Rentao=%d\n",PI[playerid][pRentao]);fwrite(hFile, var);
				format(var, 64, "Lider=%d\n",PI[playerid][pLider]);fwrite(hFile, var);
				format(var, 64, "Plata=%d\n",PI[playerid][pPlata]);fwrite(hFile, var);
				format(var, 64, "DoniranSlot=%d\n",PI[playerid][pDoniranSlot]);fwrite(hFile, var);
				format(var, 64, "Zoki=%d\n",PI[playerid][pNocke]);fwrite(hFile, var);
				format(var, 64, "Davac=%d\n",PI[playerid][pDavac]);fwrite(hFile, var);
				format(var, 64, "Odobrenje=%d\n",PI[playerid][pOdobrenje]);fwrite(hFile, var);
				format(var, 64, "Dani=%d\n",PI[playerid][pDani]);fwrite(hFile, var);
				format(var, 64, "Penzioner=%d\n",PI[playerid][pPenzioner]);fwrite(hFile, var);
				format(var, 64, "Bezanje=%d\n",PI[playerid][pBezanje]);fwrite(hFile, var);
				format(var, 64, "Jarac=%d\n",PI[playerid][pJarac]);fwrite(hFile, var);
				format(var, 64, "MenjanEmail=%d\n",PI[playerid][pMenjanEmail]);fwrite(hFile, var);
				format(var, 64, "UzeoSocijalu=%d\n",PI[playerid][pUzeoSocijalu]);fwrite(hFile, var);
				format(var, 64, "Pasos=%d\n",PI[playerid][pPasos]);fwrite(hFile, var);
				format(var, 64, "OrgInt=%d\n",PI[playerid][pOrgInt]);fwrite(hFile, var);
				format(var, 64, "Muzac=%d\n",PI[playerid][pMuzac]);fwrite(hFile, var);
				format(var, 64, "Commands=%d\n",PI[playerid][pCommands]);fwrite(hFile, var);
				format(var, 64, "Newsare=%d\n",PI[playerid][pNewsare]);fwrite(hFile, var);
				format(var, 64, "HighSkill=%d\n",PI[playerid][pHighSkill]);fwrite(hFile, var);
				format(var, 64, "RobijaJailed=%d\n",PI[playerid][pRobijaJailed]);fwrite(hFile, var);
				format(var, 64, "Novcanik=%d\n",PI[playerid][pNovcanik]);fwrite(hFile, var);
				format(var, 64, "Banned=%d\n",PI[playerid][pBanned]);fwrite(hFile, var);
				format(var, 64, "Kaznjavan=%d\n",PI[playerid][pKaznjavan]);fwrite(hFile, var);
				format(var, 64, "CarLic=%d\n",PI[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 64, "FlyLic=%d\n",PI[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 64, "BoatLic=%d\n",PI[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 64, "FishLic=%d\n",PI[playerid][pFishLic]);fwrite(hFile, var);
				format(var, 64, "GunLic=%d\n",PI[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 64, "Alat=%d\n",PI[playerid][pAlat]);fwrite(hFile, var);
				format(var, 64, "Adminkazna=%d\n",PI[playerid][pOSCkazna]);fwrite(hFile, var);
				format(var, 64, "Faktura=%d\n",PI[playerid][pFaktura]);fwrite(hFile, var);
				format(var, 64, "sFaktura=%d\n",PI[playerid][psFaktura]);fwrite(hFile, var);
				format(var, 64, "XLos=%d\n",PI[playerid][pXLos]);fwrite(hFile, var);
				format(var, 64, "Tazovan=%d\n",PI[playerid][pTazovan]);fwrite(hFile, var);
				format(var, 64, "Bolest1=%d\n",PI[playerid][pBolest1]);fwrite(hFile, var);
				format(var, 64, "Walk=%d\n",PI[playerid][pWalk]);fwrite(hFile, var);
				format(var, 64, "Voda1=%d\n",PI[playerid][pVoda1]);fwrite(hFile, var);
				format(var, 64, "Cips=%d\n",PI[playerid][pCips]);fwrite(hFile, var);
				format(var, 64, "Cokolada=%d\n",PI[playerid][pCokolada]);fwrite(hFile, var);
				format(var, 64, "Hleb=%d\n",PI[playerid][pHleb]);fwrite(hFile, var);
				format(var, 64, "PrvaPomoc=%d\n",PI[playerid][pPrvaPomoc]);fwrite(hFile, var);
				format(var, 64, "Sendvic=%d\n",PI[playerid][pSendvic]);fwrite(hFile, var);
				format(var, 64, "Pizza=%d\n",PI[playerid][pPizza]);fwrite(hFile, var);
				format(var, 64, "Kokakola=%d\n",PI[playerid][pKokakola]);fwrite(hFile, var);
				format(var, 64, "RobijaTime=%d\n",PI[playerid][pRobijaTime]);fwrite(hFile, var);
				format(var, 64, "Materials=%d\n",PI[playerid][pMats]);fwrite(hFile, var);
				format(var, 64, "Drugs=%d\n",PI[playerid][pDrugs]);fwrite(hFile, var);
				format(var, 64, "Osiguranja=%d\n",PI[playerid][pPosiguranje]);fwrite(hFile, var);
				format(var, 64, "Polaganje1=%d\n",PI[playerid][pPolaganje1]);fwrite(hFile, var);
				format(var, 64, "Polaganje2=%d\n",PI[playerid][pPolaganje2]);fwrite(hFile, var);
				format(var, 64, "Polaganje3=%d\n",PI[playerid][pPolaganje3]);fwrite(hFile, var);
				format(var, 64, "PistSkill=%d\n",PI[playerid][pPistSkill]);fwrite(hFile, var);
				format(var, 64, "SilenSkill=%d\n",PI[playerid][pSilenSkill]);fwrite(hFile, var);
				format(var, 64, "ShotgSkill=%d\n",PI[playerid][pShotgSkill]);fwrite(hFile, var);
				format(var, 64, "SawnSkill=%d\n",PI[playerid][pSawnSkill]);fwrite(hFile, var);
				format(var, 64, "CombSkill=%d\n",PI[playerid][pCombSkill]);fwrite(hFile, var);
				format(var, 64, "UziSkill=%d\n",PI[playerid][pUziSkill]);fwrite(hFile, var);
				format(var, 64, "SmgSkill=%d\n",PI[playerid][pSmgSkill]);fwrite(hFile, var);
				format(var, 64, "AKSkill=%d\n",PI[playerid][pAkSkill]);fwrite(hFile, var);
				format(var, 64, "M4Skill=%d\n",PI[playerid][pM4Skill]);fwrite(hFile, var);
				format(var, 64, "DesertSkill=%d\n",PI[playerid][pDesertSkill]);fwrite(hFile, var);
				format(var, 64, "AmmuTrainTime=%d\n",PI[playerid][pAmmuTrainTime]);fwrite(hFile, var);
				format(var, 64, "RPRank=%d\n",PI[playerid][pSPRank]);fwrite(hFile, var);
				format(var, 64, "Leader=%d\n",PI[playerid][pLeader]);fwrite(hFile, var);
				format(var, 64, "Member=%d\n",PI[playerid][pMember]);fwrite(hFile, var);
				format(var, 64, "FMember=%d\n",PI[playerid][pFMember]);fwrite(hFile, var);
				format(var, 64, "Rank=%d\n",PI[playerid][pRank]);fwrite(hFile, var);
				format(var, 64, "Char=%d\n",PI[playerid][pChar]);fwrite(hFile, var);
				format(var, 64, "ContractTime=%d\n",PI[playerid][pContractTime]);fwrite(hFile, var);
				format(var, 64, "DetSkill=%d\n",PI[playerid][pDetSkill]);fwrite(hFile, var);
				format(var, 64, "SexSkill=%d\n",PI[playerid][pSexSkill]);fwrite(hFile, var);
				format(var, 64, "BoxSkill=%d\n",PI[playerid][pBoxSkill]);fwrite(hFile, var);
				format(var, 64, "LawSkill=%d\n",PI[playerid][pLawSkill]);fwrite(hFile, var);
				format(var, 64, "MechSkill=%d\n",PI[playerid][pMechSkill]);fwrite(hFile, var);
				format(var, 64, "JackSkill=%d\n",PI[playerid][pJackSkill]);fwrite(hFile, var);
				format(var, 64, "CarSkill=%d\n",PI[playerid][pCarSkill]);fwrite(hFile, var);
				format(var, 64, "NewsSkill=%d\n",PI[playerid][pNewsSkill]);fwrite(hFile, var);
				format(var, 64, "DrugsSkill=%d\n",PI[playerid][pDrugsSkill]);fwrite(hFile, var);
				format(var, 64, "CookSkill=%d\n",PI[playerid][pCookSkill]);fwrite(hFile, var);
				format(var, 64, "FishSkill=%d\n",PI[playerid][pFishSkill]);fwrite(hFile, var);
				format(var, 64, "pSHealth=%.1f\n",PI[playerid][pSHealth]);fwrite(hFile, var);
	            GetPlayerHealth(playerid,PI[playerid][pHealth]);
				format(var, 64, "pHealth=%.1f\n",PI[playerid][pHealth]);fwrite(hFile, var);
				format(var, 64, "Int=%d\n",PI[playerid][pInt]);fwrite(hFile, var);
				format(var, 64, "Local=%d\n",PI[playerid][pLocal]);fwrite(hFile, var);
				format(var, 64, "Team=%d\n",PI[playerid][pTeam]);fwrite(hFile, var);
				format(var, 64, "Model=%d\n",PI[playerid][pModel]);fwrite(hFile, var);
				format(var, 64, "PhoneNr=%d\n",PI[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 64, "VerCode=%d\n",PI[playerid][pVerCode]);fwrite(hFile, var);
				format(var, 64, "House=%d\n",PI[playerid][pKljucKuce]);fwrite(hFile, var);
				format(var, 64, "Stan=%d\n",PI[playerid][pKljucStana]);fwrite(hFile, var);
				format(var, 64, "Bizz=%d\n",PI[playerid][pKljucFirme]);fwrite(hFile, var);
				format(var, 64, "Ulica=%d\n",PI[playerid][pUlica]);fwrite(hFile, var);
				format(var, 64, "Helper=%d\n",PI[playerid][pHelper]);fwrite(hFile, var);
				format(var, 64, "Ministar=%d\n",PI[playerid][pMinistar]);fwrite(hFile, var);
				format(var, 64, "ObicanIgrac=%d\n",PI[playerid][pObicanIgrac]);fwrite(hFile, var);
				format(var, 64, "Promoter=%d\n",PI[playerid][pPromoter]);fwrite(hFile, var);
				format(var, 64, "Vip=%d\n",PI[playerid][pVip]);fwrite(hFile, var);
				format(var, 64, "Viptime=%d\n",PI[playerid][pViptime]);fwrite(hFile, var);
				format(var, 64, "Mapper=%d\n",PI[playerid][pMapper]);fwrite(hFile, var);
				format(var, 64, "Zlato=%d\n",PI[playerid][pZlato]);fwrite(hFile, var);
				format(var, 64, "Kazneni=%d\n",PI[playerid][pKazneni]);fwrite(hFile, var);
				format(var, 64, "MobileBon=%d\n",PI[playerid][pMobileBon]);fwrite(hFile, var);
				format(var, 64, "Zvake=%d\n",PI[playerid][pZvake]);fwrite(hFile, var);
				format(var, 64, "Spawn=%d\n",PI[playerid][pSpawn]);fwrite(hFile, var);
				format(var, 64, "Frizura=%d\n",PI[playerid][pFrizura]);fwrite(hFile, var);
				format(var, 64, "CarKey=%d\n",PI[playerid][pPcarkey]);fwrite(hFile, var);
				format(var, 64, "CarKey2=%d\n",PI[playerid][pPcarkey2]);fwrite(hFile, var);
				format(var, 64, "CarKey3=%d\n",PI[playerid][pPcarkey3]);fwrite(hFile, var);
				format(var, 64, "ImanjeID=%d\n",PI[playerid][pImaImanje]);fwrite(hFile, var);
				format(var, 64, "Sljiva=%d\n",PI[playerid][pSjemeSljiva]);fwrite(hFile, var);
				format(var, 64, "Krusaka=%d\n",PI[playerid][pSjemeKruska]);fwrite(hFile, var);
				format(var, 64, "Jabuka=%d\n",PI[playerid][pSjemeJabuka]);fwrite(hFile, var);
				format(var, 64, "pSljiva=%d\n",PI[playerid][pSljiva]);fwrite(hFile, var);
				format(var, 64, "pKrusaka=%d\n",PI[playerid][pKrusaka]);fwrite(hFile, var);
				format(var, 64, "pJabuka=%d\n",PI[playerid][pJabuka]);fwrite(hFile, var);
				if ((PI[playerid][pPos_x]==0.0 && PI[playerid][pPos_y]==0.0 && PI[playerid][pPos_z]==0.0))
				{
   	                PI[playerid][pPos_x] = 1684.9;
					PI[playerid][pPos_y] = -2244.5;
					PI[playerid][pPos_z] = 13.5;
				}
				if(Spectate[playerid] != 255)
				{
					PI[playerid][pPos_x] = Unspec[playerid][sPx];
					PI[playerid][pPos_y] = Unspec[playerid][sPy];
					PI[playerid][pPos_z] = Unspec[playerid][sPz];
					PI[playerid][pInt] = Unspec[playerid][sPint];
					PI[playerid][pLocal] = Unspec[playerid][sLocal];
				}
				format(var, 64, "Pos_x=%.1f\n",PI[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 64, "Pos_y=%.1f\n",PI[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 64, "Pos_z=%.1f\n",PI[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 64, "Gun1=%d\n",PI[playerid][pGun1]);fwrite(hFile, var);
				format(var, 64, "Gun2=%d\n",PI[playerid][pGun2]);fwrite(hFile, var);
				format(var, 64, "Gun3=%d\n",PI[playerid][pGun3]);fwrite(hFile, var);
				format(var, 64, "Gun4=%d\n",PI[playerid][pGun4]);fwrite(hFile, var);
				format(var, 64, "Ammo1=%d\n",PI[playerid][pAmmo1]);fwrite(hFile, var);
				format(var, 64, "Ammo2=%d\n",PI[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 64, "Ammo3=%d\n",PI[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 64, "Ammo4=%d\n",PI[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 64, "CarTime=%d\n",PI[playerid][pCarTime]);fwrite(hFile, var);
				format(var, 64, "PayDay=%d\n",PI[playerid][pPayDay]);fwrite(hFile, var);
				format(var, 64, "PayDayHad=%d\n",PI[playerid][pPayDayHad]);fwrite(hFile, var);
				format(var, 64, "Watch=%d\n",PI[playerid][pWatch]);fwrite(hFile, var);
				format(var, 64, "Crashed=%d\n",PI[playerid][pCrashed]);fwrite(hFile, var);
				format(var, 64, "Wins=%d\n",PI[playerid][pWins]);fwrite(hFile, var);
				format(var, 64, "Loses=%d\n",PI[playerid][pLoses]);fwrite(hFile, var);
				format(var, 64, "AlcoholPerk=%d\n",PI[playerid][pAlcoholPerk]);fwrite(hFile, var);
				format(var, 64, "DrugPerk=%d\n",PI[playerid][pDrugPerk]);fwrite(hFile, var);
				format(var, 64, "MiserPerk=%d\n",PI[playerid][pMiserPerk]);fwrite(hFile, var);
				format(var, 64, "PainPerk=%d\n",PI[playerid][pPainPerk]);fwrite(hFile, var);
				format(var, 64, "TraderPerk=%d\n",PI[playerid][pTraderPerk]);fwrite(hFile, var);
				format(var, 64, "Tutorial=%d\n",PI[playerid][pTut]);fwrite(hFile, var);
				format(var, 64, "Mission=%d\n",PI[playerid][pMissionNr]);fwrite(hFile, var);
				format(var, 64, "Warnings=%d\n",PI[playerid][pWarns]);fwrite(hFile, var);
				format(var, 64, "VirWorld=%d\n",PI[playerid][pVirWorld]);fwrite(hFile, var);
				if(PI[playerid][pDonateRank] < 1) { PI[playerid][pFuel] = 0; }
				format(var, 64, "Fuel=%d\n",PI[playerid][pFuel]);fwrite(hFile, var);
				format(var, 64, "Married=%d\n",PI[playerid][pMarried]);fwrite(hFile, var);
				format(var, 64, "MarriedTo=%s\n",PI[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 64, "FishTool=%d\n",PI[playerid][pFishTool]);fwrite(hFile, var);
    			format(var, 64, "Note1=%s\n",PI[playerid][pNote1]);fwrite(hFile, var);
				format(var, 64, "Note1s=%d\n",PI[playerid][pNote1s]);fwrite(hFile, var);
				format(var, 64, "Note2=%s\n",PI[playerid][pNote2]);fwrite(hFile, var);
				format(var, 64, "Note2s=%d\n",PI[playerid][pNote2s]);fwrite(hFile, var);
				format(var, 64, "Note3=%s\n",PI[playerid][pNote3]);fwrite(hFile, var);
				format(var, 64, "Note3s=%d\n",PI[playerid][pNote3s]);fwrite(hFile, var);
				format(var, 64, "Note4=%s\n",PI[playerid][pNote4]);fwrite(hFile, var);
				format(var, 64, "Note4s=%d\n",PI[playerid][pNote4s]);fwrite(hFile, var);
				format(var, 64, "Note5=%s\n",PI[playerid][pNote5]);fwrite(hFile, var);
				format(var, 64, "Note5s=%d\n",PI[playerid][pNote5s]);fwrite(hFile, var);
				format(var, 64, "InvWeapon=%d\n",PI[playerid][pInvWeapon]);fwrite(hFile, var);
				format(var, 64, "InvAmmo=%d\n",PI[playerid][pInvAmmo]);fwrite(hFile, var);
				format(var, 64, "Lighter=%d\n",PI[playerid][pLighter]);fwrite(hFile, var);
				format(var, 64, "Cigarettes=%d\n",PI[playerid][pCigarettes]);fwrite(hFile, var);
				format(var, 64, "Locked=%d\n",PI[playerid][pLocked]);fwrite(hFile, var);
				format(var, 64, "Zlato=%d\n",PI[playerid][pZlato]);fwrite(hFile, var);
				format(var, 64, "Kazneni=%d\n",PI[playerid][pKazneni]);fwrite(hFile, var);
				format(var, 64, "MobileBon=%d\n",PI[playerid][pMobileBon]);fwrite(hFile, var);
				format(var, 64, "Zvake=%d\n",PI[playerid][pZvake]);fwrite(hFile, var);
				fclose(hFile);
			}
		}
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)