Cadк os Erros "}"?
#1

Bom eu fui botar um sistema de Armas nas costas e deu erro no fechamento da public... porйm tentei de tudo e nгo dб :S
Public:
Код:
public OnPlayerUpdateEx(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	
			if(GetPlayerState(playerid)==PLAYER_STATE_ONFOOT)
	{
		new weaponid=GetPlayerWeapon(playerid),oldweapontype=GetWeaponType(OldWeapon[playerid]);
		new weapontype=GetWeaponType(weaponid);
		if(HoldingWeapon[playerid]==weaponid)
		    StopPlayerHoldingObject(playerid);

		if(OldWeapon[playerid]!=weaponid)
		{
		    new modelid=GetWeaponModel(OldWeapon[playerid]);
		    if(modelid!=0 && oldweapontype!=WEAPON_TYPE_NONE && oldweapontype!=weapontype)
		    {
		        HoldingWeapon[playerid]=OldWeapon[playerid];
		        switch(oldweapontype)
		        {
		            case WEAPON_TYPE_LIGHT:
						SetPlayerHoldingObject(playerid, modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);

					case WEAPON_TYPE_MELEE:
					    SetPlayerHoldingObject(playerid, modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);

					case WEAPON_TYPE_HEAVY:
					    SetPlayerHoldingObject(playerid, modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
		        }
		    }
		}

		if(oldweapontype!=weapontype)
			OldWeapon[playerid]=weaponid;

}
return 1;
}
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "LARP/Users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
				new var[176];
				format(var, 128, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				format(var, 128, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
				format(var, 128, "VIP=%d\n", VIP[playerid]);fwrite(hFile, var);
//				format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
				format(var, 32, "PremmyExpire=%s\n",PlayerInfo[playerid][pPremmyExpire]);fwrite(hFile, var);
                format(var, 128, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
				format(var, 128, "TesterLevel=%d\n",PlayerInfo[playerid][pTester]);fwrite(hFile, var);
				format(var, 128, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
				format(var, 128, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
				format(var, 128, "RegularRank=%d\n",PlayerInfo[playerid][pRegularRank]);fwrite(hFile, var);
					format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
				format(var, 128, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 128, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectSeconds]);fwrite(hFile, var);
				format(var, 128, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
				format(var, 128, "Sexo=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
				format(var, 128, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
                format(var, 128, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
				format(var, 128, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
				format(var, 128, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
				format(var, 128, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                format(var, 128, "Frozen=%d\n",PlayerInfo[playerid][pFrozen]);fwrite(hFile, var);
                format(var, 128, "Blind=%d\n",PlayerInfo[playerid][pBlind]);fwrite(hFile, var);
				format(var, 128, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
				PlayerInfo[playerid][pCash] = ScriptMoney[playerid];
				format(var, 128, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 128, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
				format(var, 128, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
				format(var, 128, "CrimeReason=%s\n",PlayerInfo[playerid][pCrimeReason]);fwrite(hFile, var);
				format(var, 128, "Wanted=%d\n",PlayerInfo[playerid][pWanted]);fwrite(hFile, var);
				format(var, 128, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
				format(var, 128, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
				format(var, 128, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                format(var, 128, "WhyLeft=%d\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
				format(var, 128, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
				format(var, 128, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
				format(var, 128, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
				format(var, 128, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 32, "Bomba=%d\n",PlayerInfo[playerid][pBomb]);fwrite(hFile, var);
				format(var, 128, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
				format(var, 128, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
				format(var, 128, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
				format(var, 128, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
				format(var, 128, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
				format(var, 128, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
				format(var, 128, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 128, "CanRobTime=%d\n",PlayerInfo[playerid][pRobTime]);fwrite(hFile, var);
				format(var, 128, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
				format(var, 128, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
				format(var, 128, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
				format(var, 128, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
				format(var, 128, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
				format(var, 128, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
				format(var, 128, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
				format(var, 128, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
				format(var, 128, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
				format(var, 128, "SexoSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
				format(var, 128, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
				format(var, 128, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
				format(var, 128, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
				format(var, 128, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
				format(var, 128, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
				format(var, 128, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
				format(var, 128, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
				format(var, 128, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
				format(var, 128, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
				format(var, 128, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
				format(var, 128, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
                format(var, 128, "pArmour=%.1f\n",PlayerInfo[playerid][pArmour]);fwrite(hFile, var);
				format(var, 128, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
				format(var, 128, "InteriorNr=%d\n",PlayerInfo[playerid][pInteriorNr]);fwrite(hFile, var);
				format(var, 128, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
				format(var, 128, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
				format(var, 128, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
				format(var, 128, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 128, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
                format(var, 128, "Car2=%d\n",PlayerInfo[playerid][pPcarkey2]);fwrite(hFile, var);
				format(var, 128, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
				format(var, 128, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
				format(var, 128, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 128, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 128, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 128, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
				format(var, 128, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 128, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 128, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 128, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
				format(var, 128, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 128, "CopLic=%d\n",PlayerInfo[playerid][pCopLic]);fwrite(hFile, var);
				format(var, 128, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
				format(var, 128, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
				format(var, 128, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
				format(var, 128, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
				format(var, 128, "Crashed=%d\n",PlayerInfo[playerid][pCrashed]);fwrite(hFile, var);
				format(var, 128, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
				format(var, 128, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
				format(var, 128, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
				format(var, 128, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
				format(var, 128, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
				format(var, 128, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
				format(var, 128, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
				format(var, 128, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
				format(var, 128, "VirWorld=%d\n",PlayerInfo[playerid][pVirWorld]);fwrite(hFile, var);
				if(PlayerInfo[playerid][pRegularRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
				format(var, 128, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
				format(var, 128, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
				format(var, 128, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 128, "FishTool=%d\n",PlayerInfo[playerid][pFishTool]);fwrite(hFile, var);
    			format(var, 128, "WhyLeft=%s\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
				format(var, 128, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var);
				format(var, 128, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var);
				format(var, 128, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var);
				format(var, 128, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var);
				format(var, 128, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var);
				format(var, 128, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var);
				format(var, 128, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var);
				format(var, 128, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var);
				format(var, 128, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var);
				format(var, 128, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var);
				format(var, 128, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
				format(var, 128, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
				format(var, 128, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
				format(var, 128, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
				format(var, 128, "InvWeapon3=%d\n",PlayerInfo[playerid][pInvWeapon3]);fwrite(hFile, var);
				format(var, 128, "InvAmmo3=%d\n",PlayerInfo[playerid][pInvAmmo3]);fwrite(hFile, var);
				format(var, 128, "InvWeapon4=%d\n",PlayerInfo[playerid][pInvWeapon4]);fwrite(hFile, var);
				format(var, 128, "InvAmmo4=%d\n",PlayerInfo[playerid][pInvAmmo4]);fwrite(hFile, var);
				format(var, 128, "InvWeapon5=%d\n",PlayerInfo[playerid][pInvWeapon5]);fwrite(hFile, var);
				format(var, 128, "InvAmmo5=%d\n",PlayerInfo[playerid][pInvAmmo5]);fwrite(hFile, var);
				format(var, 128, "InvWeapon6=%d\n",PlayerInfo[playerid][pInvWeapon6]);fwrite(hFile, var);
				format(var, 128, "InvAmmo6=%d\n",PlayerInfo[playerid][pInvAmmo6]);fwrite(hFile, var);
				format(var, 128, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
				format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
				format(var, 128, "Warnings=%d\n",PlayerInfo[playerid][pWarned]);fwrite(hFile, var);
				format(var, 128, "Swat=%d\n",PlayerInfo[playerid][pSwat]);fwrite(hFile, var);
                format(var, 128, "Fighting=%d\n",PlayerInfo[playerid][pFS]);fwrite(hFile, var);
                format(var, 128, "Boxing=%d\n",PlayerInfo[playerid][pBoxiSkill]);fwrite(hFile, var);
                format(var, 128, "KneeHead=%d\n",PlayerInfo[playerid][pKneeSkill]);fwrite(hFile, var);
                format(var, 128, "KungFu=%d\n",PlayerInfo[playerid][pKungSkill]);fwrite(hFile, var);
                format(var, 128, "GrabKick=%d\n",PlayerInfo[playerid][pGrabSkill]);fwrite(hFile, var);
                format(var, 128, "Elbow=%d\n",PlayerInfo[playerid][pElbowSkill]);fwrite(hFile, var);
				format(var, 128, "Tactical=%d\n",PlayerInfo[playerid][pTactical]);fwrite(hFile, var);
				format(var, 128, "SpecialF=%d\n",PlayerInfo[playerid][pSpecialF]);fwrite(hFile, var);
                format(var, 128, "DutyBanned=%d\n",PlayerInfo[playerid][pDBanned]);fwrite(hFile, var);
                format(var, 128, "DDManager=%d\n",PlayerInfo[playerid][pDM]);fwrite(hFile, var);
				format(var, 128, "On‌Duty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
    			format(var, 128, "DDTicket=%d\n",PlayerInfo[playerid][pDTK]);fwrite(hFile, var);
    			format(var, 128, "DDSTicket=%d\n",PlayerInfo[playerid][pDSTK]);fwrite(hFile, var);
    			format(var, 128, "CDPlayer=%d\n",PlayerInfo[playerid][pCD]);fwrite(hFile, var);
    			format(var, 128, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
				format(var, 128, "HydraDriver=%d\n",PlayerInfo[playerid][pHydraR]);fwrite(hFile, var);
    			format(var, 128, "HunterDriver=%d\n",PlayerInfo[playerid][pHunterR]);fwrite(hFile, var);
    			format(var, 128, "RhinoDriver=%d\n",PlayerInfo[playerid][pRhinoR]);fwrite(hFile, var);
    			format(var, 128, "PredatorDriver=%d\n",PlayerInfo[playerid][pPredR]);fwrite(hFile, var);
                format(var, 128, "ViewPms=%d\n",PlayerInfo[playerid][pViewPms]);fwrite(hFile, var);
                format(var, 128, "AppearList=%d\n",PlayerInfo[playerid][pAppearList]);fwrite(hFile, var);
				format(var, 128, "AmmunationTime=%d\n",PlayerInfo[playerid][pAmmuTrainTime]);fwrite(hFile, var);
       			format(var, 128, "PistolSkill=%d\n",PlayerInfo[playerid][pPistSkill]);fwrite(hFile, var);
                format(var, 128, "SilencedSkill=%d\n",PlayerInfo[playerid][pSilenSkill]);fwrite(hFile, var);
                format(var, 128, "DesertSkill=%d\n",PlayerInfo[playerid][pDesertSkill]);fwrite(hFile, var);
                format(var, 128, "ShotgunSkill=%d\n",PlayerInfo[playerid][pShotgSkill]);fwrite(hFile, var);
                format(var, 128, "SawnoffSkill=%d\n",PlayerInfo[playerid][pSawnSkill]);fwrite(hFile, var);
                format(var, 128, "CombatSkill=%d\n",PlayerInfo[playerid][pCombSkill]);fwrite(hFile, var);
                format(var, 128, "UziSkill=%d\n",PlayerInfo[playerid][pUziSkill]);fwrite(hFile, var);
                format(var, 128, "SMGSkill=%d\n",PlayerInfo[playerid][pSmgSkill]);fwrite(hFile, var);
                format(var, 128, "AK47Skill=%d\n",PlayerInfo[playerid][pAkSkill]);fwrite(hFile, var);
                format(var, 128, "M4Skill=%d\n",PlayerInfo[playerid][pM4Skill]);fwrite(hFile, var);
                format(var, 128, "SniperSkill=%d\n",PlayerInfo[playerid][pSnipSkill]);fwrite(hFile, var);
                format(var, 128, "TutorialDone=%d\n",PlayerInfo[playerid][pTutDone]);fwrite(hFile, var);
                format(var, 128, "RegularCount=%d\n",PlayerInfo[playerid][pRegularCount]);fwrite(hFile, var);
                format(var, 128, "PassportTime=%d\n",PlayerInfo[playerid][pPassportTime]);fwrite(hFile, var);
                format(var, 128, "OfficerTime=%d\n",PlayerInfo[playerid][pOfficerTime]);fwrite(hFile, var);format(var, 128, "Achievement0=%d\n",PlayerInfo[playerid][pAchievement0]);fwrite(hFile, var);
                format(var, 128, "Achievement1=%d\n",PlayerInfo[playerid][pAchievement1]);fwrite(hFile, var);
                format(var, 128, "Achievement2=%d\n",PlayerInfo[playerid][pAchievement2]);fwrite(hFile, var);
                format(var, 128, "Achievement3=%d\n",PlayerInfo[playerid][pAchievement3]);fwrite(hFile, var);
                format(var, 128, "Achievement4=%d\n",PlayerInfo[playerid][pAchievement4]);fwrite(hFile, var);
                format(var, 128, "Achievement5=%d\n",PlayerInfo[playerid][pAchievement5]);fwrite(hFile, var);
                format(var, 128, "Achievement6=%d\n",PlayerInfo[playerid][pAchievement6]);fwrite(hFile, var);
                format(var, 128, "Achievement7=%d\n",PlayerInfo[playerid][pAchievement7]);fwrite(hFile, var);
                format(var, 128, "Achievement8=%d\n",PlayerInfo[playerid][pAchievement8]);fwrite(hFile, var);
                format(var, 128, "Achievement9=%d\n",PlayerInfo[playerid][pAchievement9]);fwrite(hFile, var);
                format(var, 128, "Achievement10=%d\n",PlayerInfo[playerid][pAchievement10]);fwrite(hFile, var);
                format(var, 128, "Achievement11=%d\n",PlayerInfo[playerid][pAchievement11]);fwrite(hFile, var);
                format(var, 128, "Achievement12=%d\n",PlayerInfo[playerid][pAchievement12]);fwrite(hFile, var);
                format(var, 128, "Achievement13=%d\n",PlayerInfo[playerid][pAchievement13]);fwrite(hFile, var);
                format(var, 128, "Achievement14=%d\n",PlayerInfo[playerid][pAchievement14]);fwrite(hFile, var);
                format(var, 128, "Achievement15=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var);
                format(var, 128, "Achievement16=%d\n",PlayerInfo[playerid][pAchievement16]);fwrite(hFile, var);
                format(var, 128, "Achievement17=%d\n",PlayerInfo[playerid][pAchievement17]);fwrite(hFile, var);
                format(var, 128, "Achievement18=%d\n",PlayerInfo[playerid][pAchievement18]);fwrite(hFile, var);
                format(var, 128, "Achievement19=%d\n",PlayerInfo[playerid][pAchievement19]);fwrite(hFile, var);
                format(var, 128, "Achievement20=%d\n",PlayerInfo[playerid][pAchievement20]);fwrite(hFile, var);
                format(var, 128, "ShiftName=%d\n",PlayerInfo[playerid][pShiftName]);fwrite(hFile, var);
                format(var, 128, "Weapon=%d\n",PlayerInfo[playerid][pWeapon]);fwrite(hFile, var);
				format(var, 128, "Ammo=%d\n",PlayerInfo[playerid][pAmmo]);fwrite(hFile, var);
				format(var, 128, "Weapon2=%d\n",PlayerInfo[playerid][pWeapon2]);fwrite(hFile, var);
				format(var, 128, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 128, "Weapon3=%d\n",PlayerInfo[playerid][pWeapon3]);fwrite(hFile, var);
				format(var, 128, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 128, "Weapon4=%d\n",PlayerInfo[playerid][pWeapon4]);fwrite(hFile, var);
				format(var, 128, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 128, "Weapon5=%d\n",PlayerInfo[playerid][pWeapon5]);fwrite(hFile, var);
				format(var, 128, "Ammo5=%d\n",PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
				format(var, 128, "Weapon6=%d\n",PlayerInfo[playerid][pWeapon6]);fwrite(hFile, var);
				format(var, 128, "Ammo6=%d\n",PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
				format(var, 128, "Weapon7=%d\n",PlayerInfo[playerid][pWeapon7]);fwrite(hFile, var);
				format(var, 128, "Ammo7=%d\n",PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
				format(var, 128, "Weapon8=%d\n",PlayerInfo[playerid][pWeapon8]);fwrite(hFile, var);
				format(var, 128, "Ammo8=%d\n",PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
				format(var, 128, "Weapon9=%d\n",PlayerInfo[playerid][pWeapon9]);fwrite(hFile, var);
				format(var, 128, "Ammo9=%d\n",PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
				format(var, 128, "Weapon10=%d\n",PlayerInfo[playerid][pWeapon10]);fwrite(hFile, var);
				format(var, 128, "Ammo10=%d\n",PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
				format(var, 128, "Weapon11=%d\n",PlayerInfo[playerid][pWeapon11]);fwrite(hFile, var);
				format(var, 128, "Ammo11=%d\n",PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
				format(var, 128, "Weapon12=%d\n",PlayerInfo[playerid][pWeapon12]);fwrite(hFile, var);
				format(var, 128, "Atc=%d\n",PlayerInfo[playerid][pAtc]);fwrite(hFile, var);
				format(var, 128, "AtcRadio=%d\n",PlayerInfo[playerid][pAtcRadio]);fwrite(hFile, var);
                format(var, 128, "Pending=%d\n",PlayerInfo[playerid][pPending]);fwrite(hFile, var);
                format(var, 128, "PendingInfo=%s\n",PlayerInfo[playerid][pPendingInfo]);fwrite(hFile, var);
				format(var, 128, "ChatMode=%d\n",PlayerInfo[playerid][pChatMode]);fwrite(hFile, var);
                format(var, 176, "Punishment1=%s\n",PlayerInfo[playerid][pPunishment1]);fwrite(hFile, var);
				format(var, 176, "Punishment2=%s\n",PlayerInfo[playerid][pPunishment2]);fwrite(hFile, var);
				format(var, 176, "Punishment3=%s\n",PlayerInfo[playerid][pPunishment3]);fwrite(hFile, var);
				format(var, 176, "Punishment4=%s\n",PlayerInfo[playerid][pPunishment4]);fwrite(hFile, var);
				format(var, 176, "Punishment5=%s\n",PlayerInfo[playerid][pPunishment5]);fwrite(hFile, var);
                format(var, 176, "Punishment6=%s\n",PlayerInfo[playerid][pPunishment6]);fwrite(hFile, var);
				format(var, 176, "Punishment7=%s\n",PlayerInfo[playerid][pPunishment7]);fwrite(hFile, var);
				format(var, 176, "Punishment8=%s\n",PlayerInfo[playerid][pPunishment8]);fwrite(hFile, var);
				format(var, 176, "NextPunishment=%d\n",PlayerInfo[playerid][pNextPunishment]);fwrite(hFile, var);
                format(var, 176, "PunishedTimes=%d\n",PlayerInfo[playerid][pPunished]);fwrite(hFile, var);
                format(var, 176, "TazerBullets=%d\n",PlayerInfo[playerid][pTazerBullets]);fwrite(hFile, var);
				format(var, 176, "LastSeen=%s\n",PlayerInfo[playerid][pLastSeen]);fwrite(hFile, var);
				format(var, 176, "RegistredDate=%s\n",PlayerInfo[playerid][pRegistredDate]);fwrite(hFile, var);
				format(var, 176, "Changed=%d\n",PlayerInfo[playerid][pChanged]);fwrite(hFile, var);
				fclose(hFile);
			}
		
}
}

	return 1;
}
Erros:
Код:
C:\Users\Martins\Desktop\ESTБ AQUI!\GAMEMODES\larp\gamemodes\larp(6).pwn(26246) : warning 209: function "OnPlayerUpdateEx" should return a value
C:\Users\Martins\Desktop\ESTБ AQUI!\GAMEMODES\larp\gamemodes\larp(6).pwn(26247) : error 054: unmatched closing brace ("}")
C:\Users\Martins\Desktop\ESTБ AQUI!\GAMEMODES\larp\gamemodes\larp(6).pwn(26249) : error 010: invalid function or declaration
se alguem souber pf me ajude ^^
Reply
#2

pawn Код:
public OnPlayerUpdateEx(playerid)
{
    if(IsPlayerConnected(playerid))
    {
   
            if(GetPlayerState(playerid)==PLAYER_STATE_ONFOOT)
    {
        new weaponid=GetPlayerWeapon(playerid),oldweapontype=GetWeaponType(OldWeapon[playerid]);
        new weapontype=GetWeaponType(weaponid);
        if(HoldingWeapon[playerid]==weaponid)
            StopPlayerHoldingObject(playerid);

        if(OldWeapon[playerid]!=weaponid)
        {
            new modelid=GetWeaponModel(OldWeapon[playerid]);
            if(modelid!=0 && oldweapontype!=WEAPON_TYPE_NONE && oldweapontype!=weapontype)
            {
                HoldingWeapon[playerid]=OldWeapon[playerid];
                switch(oldweapontype)
                {
                    case WEAPON_TYPE_LIGHT:
                        SetPlayerHoldingObject(playerid, modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);

                    case WEAPON_TYPE_MELEE:
                        SetPlayerHoldingObject(playerid, modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);

                    case WEAPON_TYPE_HEAVY:
                        SetPlayerHoldingObject(playerid, modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
                }
            }
        }

        if(oldweapontype!=weapontype)
            OldWeapon[playerid]=weaponid;

      }
}
return 1;
}
            new string3[64];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername3, sizeof(playername3));
            format(string3, sizeof(string3), "LARP/Users/%s.ini", playername3);
            new File: hFile = fopen(string3, io_write);
            if (hFile)
            {
                new var[176];
                format(var, 128, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
                format(var, 128, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                format(var, 128, "VIP=%d\n", VIP[playerid]);fwrite(hFile, var);
//              format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
                format(var, 32, "PremmyExpire=%s\n",PlayerInfo[playerid][pPremmyExpire]);fwrite(hFile, var);
                format(var, 128, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
                format(var, 128, "TesterLevel=%d\n",PlayerInfo[playerid][pTester]);fwrite(hFile, var);
                format(var, 128, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
                format(var, 128, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                format(var, 128, "RegularRank=%d\n",PlayerInfo[playerid][pRegularRank]);fwrite(hFile, var);
                    format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
                format(var, 128, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
                format(var, 128, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectSeconds]);fwrite(hFile, var);
                format(var, 128, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
                format(var, 128, "Sexo=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
                format(var, 128, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
                format(var, 128, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
                format(var, 128, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
                format(var, 128, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
                format(var, 128, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                format(var, 128, "Frozen=%d\n",PlayerInfo[playerid][pFrozen]);fwrite(hFile, var);
                format(var, 128, "Blind=%d\n",PlayerInfo[playerid][pBlind]);fwrite(hFile, var);
                format(var, 128, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
                PlayerInfo[playerid][pCash] = ScriptMoney[playerid];
                format(var, 128, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                format(var, 128, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
                format(var, 128, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
                format(var, 128, "CrimeReason=%s\n",PlayerInfo[playerid][pCrimeReason]);fwrite(hFile, var);
                format(var, 128, "Wanted=%d\n",PlayerInfo[playerid][pWanted]);fwrite(hFile, var);
                format(var, 128, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
                format(var, 128, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                format(var, 128, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                format(var, 128, "WhyLeft=%d\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
                format(var, 128, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
                format(var, 128, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
                format(var, 128, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
                format(var, 128, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
                format(var, 32, "Bomba=%d\n",PlayerInfo[playerid][pBomb]);fwrite(hFile, var);
                format(var, 128, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                format(var, 128, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
                format(var, 128, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
                format(var, 128, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
                format(var, 128, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
                format(var, 128, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
                format(var, 128, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                format(var, 128, "CanRobTime=%d\n",PlayerInfo[playerid][pRobTime]);fwrite(hFile, var);
                format(var, 128, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
                format(var, 128, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
                format(var, 128, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
                format(var, 128, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
                format(var, 128, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
                format(var, 128, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
                format(var, 128, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
                format(var, 128, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
                format(var, 128, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
                format(var, 128, "SexoSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
                format(var, 128, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
                format(var, 128, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
                format(var, 128, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
                format(var, 128, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
                format(var, 128, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
                format(var, 128, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
                format(var, 128, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
                format(var, 128, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
                format(var, 128, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
                format(var, 128, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
                format(var, 128, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
                format(var, 128, "pArmour=%.1f\n",PlayerInfo[playerid][pArmour]);fwrite(hFile, var);
                format(var, 128, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
                format(var, 128, "InteriorNr=%d\n",PlayerInfo[playerid][pInteriorNr]);fwrite(hFile, var);
                format(var, 128, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
                format(var, 128, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
                format(var, 128, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
                format(var, 128, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
                format(var, 128, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
                format(var, 128, "Car2=%d\n",PlayerInfo[playerid][pPcarkey2]);fwrite(hFile, var);
                format(var, 128, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
                format(var, 128, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
                format(var, 128, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
                format(var, 128, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
                format(var, 128, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
                format(var, 128, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
                format(var, 128, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 128, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
                format(var, 128, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
                format(var, 128, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
                format(var, 128, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
                format(var, 128, "CopLic=%d\n",PlayerInfo[playerid][pCopLic]);fwrite(hFile, var);
                format(var, 128, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
                format(var, 128, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
                format(var, 128, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
                format(var, 128, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
                format(var, 128, "Crashed=%d\n",PlayerInfo[playerid][pCrashed]);fwrite(hFile, var);
                format(var, 128, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
                format(var, 128, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
                format(var, 128, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
                format(var, 128, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
                format(var, 128, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
                format(var, 128, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
                format(var, 128, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
                format(var, 128, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
                format(var, 128, "VirWorld=%d\n",PlayerInfo[playerid][pVirWorld]);fwrite(hFile, var);
                if(PlayerInfo[playerid][pRegularRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
                format(var, 128, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
                format(var, 128, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
                format(var, 128, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
                format(var, 128, "FishTool=%d\n",PlayerInfo[playerid][pFishTool]);fwrite(hFile, var);
                format(var, 128, "WhyLeft=%s\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
                format(var, 128, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var);
                format(var, 128, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var);
                format(var, 128, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var);
                format(var, 128, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var);
                format(var, 128, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var);
                format(var, 128, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var);
                format(var, 128, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var);
                format(var, 128, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var);
                format(var, 128, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var);
                format(var, 128, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var);
                format(var, 128, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
                format(var, 128, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
                format(var, 128, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
                format(var, 128, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
                format(var, 128, "InvWeapon3=%d\n",PlayerInfo[playerid][pInvWeapon3]);fwrite(hFile, var);
                format(var, 128, "InvAmmo3=%d\n",PlayerInfo[playerid][pInvAmmo3]);fwrite(hFile, var);
                format(var, 128, "InvWeapon4=%d\n",PlayerInfo[playerid][pInvWeapon4]);fwrite(hFile, var);
                format(var, 128, "InvAmmo4=%d\n",PlayerInfo[playerid][pInvAmmo4]);fwrite(hFile, var);
                format(var, 128, "InvWeapon5=%d\n",PlayerInfo[playerid][pInvWeapon5]);fwrite(hFile, var);
                format(var, 128, "InvAmmo5=%d\n",PlayerInfo[playerid][pInvAmmo5]);fwrite(hFile, var);
                format(var, 128, "InvWeapon6=%d\n",PlayerInfo[playerid][pInvWeapon6]);fwrite(hFile, var);
                format(var, 128, "InvAmmo6=%d\n",PlayerInfo[playerid][pInvAmmo6]);fwrite(hFile, var);
                format(var, 128, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
                format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
                format(var, 128, "Warnings=%d\n",PlayerInfo[playerid][pWarned]);fwrite(hFile, var);
                format(var, 128, "Swat=%d\n",PlayerInfo[playerid][pSwat]);fwrite(hFile, var);
                format(var, 128, "Fighting=%d\n",PlayerInfo[playerid][pFS]);fwrite(hFile, var);
                format(var, 128, "Boxing=%d\n",PlayerInfo[playerid][pBoxiSkill]);fwrite(hFile, var);
                format(var, 128, "KneeHead=%d\n",PlayerInfo[playerid][pKneeSkill]);fwrite(hFile, var);
                format(var, 128, "KungFu=%d\n",PlayerInfo[playerid][pKungSkill]);fwrite(hFile, var);
                format(var, 128, "GrabKick=%d\n",PlayerInfo[playerid][pGrabSkill]);fwrite(hFile, var);
                format(var, 128, "Elbow=%d\n",PlayerInfo[playerid][pElbowSkill]);fwrite(hFile, var);
                format(var, 128, "Tactical=%d\n",PlayerInfo[playerid][pTactical]);fwrite(hFile, var);
                format(var, 128, "SpecialF=%d\n",PlayerInfo[playerid][pSpecialF]);fwrite(hFile, var);
                format(var, 128, "DutyBanned=%d\n",PlayerInfo[playerid][pDBanned]);fwrite(hFile, var);
                format(var, 128, "DDManager=%d\n",PlayerInfo[playerid][pDM]);fwrite(hFile, var);
                format(var, 128, "On‌Duty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
                format(var, 128, "DDTicket=%d\n",PlayerInfo[playerid][pDTK]);fwrite(hFile, var);
                format(var, 128, "DDSTicket=%d\n",PlayerInfo[playerid][pDSTK]);fwrite(hFile, var);
                format(var, 128, "CDPlayer=%d\n",PlayerInfo[playerid][pCD]);fwrite(hFile, var);
                format(var, 128, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
                format(var, 128, "HydraDriver=%d\n",PlayerInfo[playerid][pHydraR]);fwrite(hFile, var);
                format(var, 128, "HunterDriver=%d\n",PlayerInfo[playerid][pHunterR]);fwrite(hFile, var);
                format(var, 128, "RhinoDriver=%d\n",PlayerInfo[playerid][pRhinoR]);fwrite(hFile, var);
                format(var, 128, "PredatorDriver=%d\n",PlayerInfo[playerid][pPredR]);fwrite(hFile, var);
                format(var, 128, "ViewPms=%d\n",PlayerInfo[playerid][pViewPms]);fwrite(hFile, var);
                format(var, 128, "AppearList=%d\n",PlayerInfo[playerid][pAppearList]);fwrite(hFile, var);
                format(var, 128, "AmmunationTime=%d\n",PlayerInfo[playerid][pAmmuTrainTime]);fwrite(hFile, var);
                format(var, 128, "PistolSkill=%d\n",PlayerInfo[playerid][pPistSkill]);fwrite(hFile, var);
                format(var, 128, "SilencedSkill=%d\n",PlayerInfo[playerid][pSilenSkill]);fwrite(hFile, var);
                format(var, 128, "DesertSkill=%d\n",PlayerInfo[playerid][pDesertSkill]);fwrite(hFile, var);
                format(var, 128, "ShotgunSkill=%d\n",PlayerInfo[playerid][pShotgSkill]);fwrite(hFile, var);
                format(var, 128, "SawnoffSkill=%d\n",PlayerInfo[playerid][pSawnSkill]);fwrite(hFile, var);
                format(var, 128, "CombatSkill=%d\n",PlayerInfo[playerid][pCombSkill]);fwrite(hFile, var);
                format(var, 128, "UziSkill=%d\n",PlayerInfo[playerid][pUziSkill]);fwrite(hFile, var);
                format(var, 128, "SMGSkill=%d\n",PlayerInfo[playerid][pSmgSkill]);fwrite(hFile, var);
                format(var, 128, "AK47Skill=%d\n",PlayerInfo[playerid][pAkSkill]);fwrite(hFile, var);
                format(var, 128, "M4Skill=%d\n",PlayerInfo[playerid][pM4Skill]);fwrite(hFile, var);
                format(var, 128, "SniperSkill=%d\n",PlayerInfo[playerid][pSnipSkill]);fwrite(hFile, var);
                format(var, 128, "TutorialDone=%d\n",PlayerInfo[playerid][pTutDone]);fwrite(hFile, var);
                format(var, 128, "RegularCount=%d\n",PlayerInfo[playerid][pRegularCount]);fwrite(hFile, var);
                format(var, 128, "PassportTime=%d\n",PlayerInfo[playerid][pPassportTime]);fwrite(hFile, var);
                format(var, 128, "OfficerTime=%d\n",PlayerInfo[playerid][pOfficerTime]);fwrite(hFile, var);format(var, 128, "Achievement0=%d\n",PlayerInfo[playerid][pAchievement0]);fwrite(hFile, var);
                format(var, 128, "Achievement1=%d\n",PlayerInfo[playerid][pAchievement1]);fwrite(hFile, var);
                format(var, 128, "Achievement2=%d\n",PlayerInfo[playerid][pAchievement2]);fwrite(hFile, var);
                format(var, 128, "Achievement3=%d\n",PlayerInfo[playerid][pAchievement3]);fwrite(hFile, var);
                format(var, 128, "Achievement4=%d\n",PlayerInfo[playerid][pAchievement4]);fwrite(hFile, var);
                format(var, 128, "Achievement5=%d\n",PlayerInfo[playerid][pAchievement5]);fwrite(hFile, var);
                format(var, 128, "Achievement6=%d\n",PlayerInfo[playerid][pAchievement6]);fwrite(hFile, var);
                format(var, 128, "Achievement7=%d\n",PlayerInfo[playerid][pAchievement7]);fwrite(hFile, var);
                format(var, 128, "Achievement8=%d\n",PlayerInfo[playerid][pAchievement8]);fwrite(hFile, var);
                format(var, 128, "Achievement9=%d\n",PlayerInfo[playerid][pAchievement9]);fwrite(hFile, var);
                format(var, 128, "Achievement10=%d\n",PlayerInfo[playerid][pAchievement10]);fwrite(hFile, var);
                format(var, 128, "Achievement11=%d\n",PlayerInfo[playerid][pAchievement11]);fwrite(hFile, var);
                format(var, 128, "Achievement12=%d\n",PlayerInfo[playerid][pAchievement12]);fwrite(hFile, var);
                format(var, 128, "Achievement13=%d\n",PlayerInfo[playerid][pAchievement13]);fwrite(hFile, var);
                format(var, 128, "Achievement14=%d\n",PlayerInfo[playerid][pAchievement14]);fwrite(hFile, var);
                format(var, 128, "Achievement15=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var);
                format(var, 128, "Achievement16=%d\n",PlayerInfo[playerid][pAchievement16]);fwrite(hFile, var);
                format(var, 128, "Achievement17=%d\n",PlayerInfo[playerid][pAchievement17]);fwrite(hFile, var);
                format(var, 128, "Achievement18=%d\n",PlayerInfo[playerid][pAchievement18]);fwrite(hFile, var);
                format(var, 128, "Achievement19=%d\n",PlayerInfo[playerid][pAchievement19]);fwrite(hFile, var);
                format(var, 128, "Achievement20=%d\n",PlayerInfo[playerid][pAchievement20]);fwrite(hFile, var);
                format(var, 128, "ShiftName=%d\n",PlayerInfo[playerid][pShiftName]);fwrite(hFile, var);
                format(var, 128, "Weapon=%d\n",PlayerInfo[playerid][pWeapon]);fwrite(hFile, var);
                format(var, 128, "Ammo=%d\n",PlayerInfo[playerid][pAmmo]);fwrite(hFile, var);
                format(var, 128, "Weapon2=%d\n",PlayerInfo[playerid][pWeapon2]);fwrite(hFile, var);
                format(var, 128, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
                format(var, 128, "Weapon3=%d\n",PlayerInfo[playerid][pWeapon3]);fwrite(hFile, var);
                format(var, 128, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
                format(var, 128, "Weapon4=%d\n",PlayerInfo[playerid][pWeapon4]);fwrite(hFile, var);
                format(var, 128, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
                format(var, 128, "Weapon5=%d\n",PlayerInfo[playerid][pWeapon5]);fwrite(hFile, var);
                format(var, 128, "Ammo5=%d\n",PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
                format(var, 128, "Weapon6=%d\n",PlayerInfo[playerid][pWeapon6]);fwrite(hFile, var);
                format(var, 128, "Ammo6=%d\n",PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
                format(var, 128, "Weapon7=%d\n",PlayerInfo[playerid][pWeapon7]);fwrite(hFile, var);
                format(var, 128, "Ammo7=%d\n",PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
                format(var, 128, "Weapon8=%d\n",PlayerInfo[playerid][pWeapon8]);fwrite(hFile, var);
                format(var, 128, "Ammo8=%d\n",PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
                format(var, 128, "Weapon9=%d\n",PlayerInfo[playerid][pWeapon9]);fwrite(hFile, var);
                format(var, 128, "Ammo9=%d\n",PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
                format(var, 128, "Weapon10=%d\n",PlayerInfo[playerid][pWeapon10]);fwrite(hFile, var);
                format(var, 128, "Ammo10=%d\n",PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
                format(var, 128, "Weapon11=%d\n",PlayerInfo[playerid][pWeapon11]);fwrite(hFile, var);
                format(var, 128, "Ammo11=%d\n",PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
                format(var, 128, "Weapon12=%d\n",PlayerInfo[playerid][pWeapon12]);fwrite(hFile, var);
                format(var, 128, "Atc=%d\n",PlayerInfo[playerid][pAtc]);fwrite(hFile, var);
                format(var, 128, "AtcRadio=%d\n",PlayerInfo[playerid][pAtcRadio]);fwrite(hFile, var);
                format(var, 128, "Pending=%d\n",PlayerInfo[playerid][pPending]);fwrite(hFile, var);
                format(var, 128, "PendingInfo=%s\n",PlayerInfo[playerid][pPendingInfo]);fwrite(hFile, var);
                format(var, 128, "ChatMode=%d\n",PlayerInfo[playerid][pChatMode]);fwrite(hFile, var);
                format(var, 176, "Punishment1=%s\n",PlayerInfo[playerid][pPunishment1]);fwrite(hFile, var);
                format(var, 176, "Punishment2=%s\n",PlayerInfo[playerid][pPunishment2]);fwrite(hFile, var);
                format(var, 176, "Punishment3=%s\n",PlayerInfo[playerid][pPunishment3]);fwrite(hFile, var);
                format(var, 176, "Punishment4=%s\n",PlayerInfo[playerid][pPunishment4]);fwrite(hFile, var);
                format(var, 176, "Punishment5=%s\n",PlayerInfo[playerid][pPunishment5]);fwrite(hFile, var);
                format(var, 176, "Punishment6=%s\n",PlayerInfo[playerid][pPunishment6]);fwrite(hFile, var);
                format(var, 176, "Punishment7=%s\n",PlayerInfo[playerid][pPunishment7]);fwrite(hFile, var);
                format(var, 176, "Punishment8=%s\n",PlayerInfo[playerid][pPunishment8]);fwrite(hFile, var);
                format(var, 176, "NextPunishment=%d\n",PlayerInfo[playerid][pNextPunishment]);fwrite(hFile, var);
                format(var, 176, "PunishedTimes=%d\n",PlayerInfo[playerid][pPunished]);fwrite(hFile, var);
                format(var, 176, "TazerBullets=%d\n",PlayerInfo[playerid][pTazerBullets]);fwrite(hFile, var);
                format(var, 176, "LastSeen=%s\n",PlayerInfo[playerid][pLastSeen]);fwrite(hFile, var);
                format(var, 176, "RegistredDate=%s\n",PlayerInfo[playerid][pRegistredDate]);fwrite(hFile, var);
                format(var, 176, "Changed=%d\n",PlayerInfo[playerid][pChanged]);fwrite(hFile, var);
                fclose(hFile);
            }
       
}
}

    return 1;
}
tenta
Reply
#3

Diz q n ta respondendo e tem que fechar... vocк pфs } a mais...
Reply
#4

pawn Код:
public OnPlayerUpdateEx(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(GetPlayerState(playerid)==PLAYER_STATE_ONFOOT)
        {
            new weaponid=GetPlayerWeapon(playerid),oldweapontype=GetPlayerWeaponType(OldWeapon[playerid]);
            new weapontype=GetWeaponType(weaponid);
            if(HoldingWeapon[playerid]==weaponid) StopPlayerHoldingObject(playerid);

            if(OldWeapon[playerid]!=weaponid)
            {
                new modelid=GetWeaponModel(OldWeapon[playerid]);
                if(modelid!=0 && oldweapontype!=WEAPON_TYPE_NONE && oldweapontype!=weapontype)
                {
                        HoldingWeapon[playerid]=OldWeapon[playerid];
                        switch(oldweapontype)
                        {
                            case WEAPON_TYPE_LIGHT: SetPlayerHoldingObject(playerid, modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);
                            case WEAPON_TYPE_MELEE: SetPlayerHoldingObject(playerid, modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);
                            case WEAPON_TYPE_HEAVY: SetPlayerHoldingObject(playerid, modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
                        }
                }
            }
            if(oldweapontype!=weapontype) OldWeapon[playerid]=weaponid;
        }
    }
    new string3[64];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "LARP/Users/%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
        new var[176];
        format(var, 128, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
        format(var, 128, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
        format(var, 128, "VIP=%d\n", VIP[playerid]);fwrite(hFile, var);
        //format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
        format(var, 32, "PremmyExpire=%s\n",PlayerInfo[playerid][pPremmyExpire]);fwrite(hFile, var);
        format(var, 128, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
        format(var, 128, "TesterLevel=%d\n",PlayerInfo[playerid][pTester]);fwrite(hFile, var);
        format(var, 128, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
        format(var, 128, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
        format(var, 128, "RegularRank=%d\n",PlayerInfo[playerid][pRegularRank]);fwrite(hFile, var);
        format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
        format(var, 128, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
        format(var, 128, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectSeconds]);fwrite(hFile, var);
        format(var, 128, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
        format(var, 128, "Sexo=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
        format(var, 128, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
        format(var, 128, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
        format(var, 128, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
        format(var, 128, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
        format(var, 128, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
        format(var, 128, "Frozen=%d\n",PlayerInfo[playerid][pFrozen]);fwrite(hFile, var);
        format(var, 128, "Blind=%d\n",PlayerInfo[playerid][pBlind]);fwrite(hFile, var);
        format(var, 128, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
        PlayerInfo[playerid][pCash] = ScriptMoney[playerid];
        format(var, 128, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
        format(var, 128, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
        format(var, 128, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
        format(var, 128, "CrimeReason=%s\n",PlayerInfo[playerid][pCrimeReason]);fwrite(hFile, var);
        format(var, 128, "Wanted=%d\n",PlayerInfo[playerid][pWanted]);fwrite(hFile, var);
        format(var, 128, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
        format(var, 128, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
        format(var, 128, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
        format(var, 128, "WhyLeft=%d\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
        format(var, 128, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
        format(var, 128, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
        format(var, 128, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
        format(var, 128, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
        format(var, 32, "Bomba=%d\n",PlayerInfo[playerid][pBomb]);fwrite(hFile, var);
        format(var, 128, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
        format(var, 128, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
        format(var, 128, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
        format(var, 128, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
        format(var, 128, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
        format(var, 128, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
        format(var, 128, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
        format(var, 128, "CanRobTime=%d\n",PlayerInfo[playerid][pRobTime]);fwrite(hFile, var);
        format(var, 128, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
        format(var, 128, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
        format(var, 128, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
        format(var, 128, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
        format(var, 128, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
        format(var, 128, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
        format(var, 128, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
        format(var, 128, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
        format(var, 128, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
        format(var, 128, "SexoSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
        format(var, 128, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
        format(var, 128, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
        format(var, 128, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
        format(var, 128, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
        format(var, 128, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
        format(var, 128, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
        format(var, 128, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
        format(var, 128, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
        format(var, 128, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
        format(var, 128, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
        format(var, 128, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
        format(var, 128, "pArmour=%.1f\n",PlayerInfo[playerid][pArmour]);fwrite(hFile, var);
        format(var, 128, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
        format(var, 128, "InteriorNr=%d\n",PlayerInfo[playerid][pInteriorNr]);fwrite(hFile, var);
        format(var, 128, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
        format(var, 128, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
        format(var, 128, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
        format(var, 128, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
        format(var, 128, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
        format(var, 128, "Car2=%d\n",PlayerInfo[playerid][pPcarkey2]);fwrite(hFile, var);
        format(var, 128, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
        format(var, 128, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
        format(var, 128, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
        format(var, 128, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
        format(var, 128, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
        format(var, 128, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
        format(var, 128, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
        format(var, 128, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
        format(var, 128, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
        format(var, 128, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
        format(var, 128, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
        format(var, 128, "CopLic=%d\n",PlayerInfo[playerid][pCopLic]);fwrite(hFile, var);
        format(var, 128, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
        format(var, 128, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
        format(var, 128, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
        format(var, 128, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var);
        format(var, 128, "Crashed=%d\n",PlayerInfo[playerid][pCrashed]);fwrite(hFile, var);
        format(var, 128, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
        format(var, 128, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
        format(var, 128, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
        format(var, 128, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
        format(var, 128, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
        format(var, 128, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
        format(var, 128, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
        format(var, 128, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
        format(var, 128, "VirWorld=%d\n",PlayerInfo[playerid][pVirWorld]);fwrite(hFile, var);
        if(PlayerInfo[playerid][pRegularRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
        format(var, 128, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
        format(var, 128, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
        format(var, 128, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
        format(var, 128, "FishTool=%d\n",PlayerInfo[playerid][pFishTool]);fwrite(hFile, var);
        format(var, 128, "WhyLeft=%s\n",PlayerInfo[playerid][pWhyLeft]);fwrite(hFile, var);
        format(var, 128, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var);
        format(var, 128, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var);
        format(var, 128, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var);
        format(var, 128, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var);
        format(var, 128, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var);
        format(var, 128, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var);
        format(var, 128, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var);
        format(var, 128, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var);
        format(var, 128, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var);
        format(var, 128, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var);
        format(var, 128, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
        format(var, 128, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
        format(var, 128, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
        format(var, 128, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
        format(var, 128, "InvWeapon3=%d\n",PlayerInfo[playerid][pInvWeapon3]);fwrite(hFile, var);
        format(var, 128, "InvAmmo3=%d\n",PlayerInfo[playerid][pInvAmmo3]);fwrite(hFile, var);
        format(var, 128, "InvWeapon4=%d\n",PlayerInfo[playerid][pInvWeapon4]);fwrite(hFile, var);
        format(var, 128, "InvAmmo4=%d\n",PlayerInfo[playerid][pInvAmmo4]);fwrite(hFile, var);
        format(var, 128, "InvWeapon5=%d\n",PlayerInfo[playerid][pInvWeapon5]);fwrite(hFile, var);
        format(var, 128, "InvAmmo5=%d\n",PlayerInfo[playerid][pInvAmmo5]);fwrite(hFile, var);
        format(var, 128, "InvWeapon6=%d\n",PlayerInfo[playerid][pInvWeapon6]);fwrite(hFile, var);
        format(var, 128, "InvAmmo6=%d\n",PlayerInfo[playerid][pInvAmmo6]);fwrite(hFile, var);
        format(var, 128, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var);
        format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
        format(var, 128, "Warnings=%d\n",PlayerInfo[playerid][pWarned]);fwrite(hFile, var);
        format(var, 128, "Swat=%d\n",PlayerInfo[playerid][pSwat]);fwrite(hFile, var);
        format(var, 128, "Fighting=%d\n",PlayerInfo[playerid][pFS]);fwrite(hFile, var);
        format(var, 128, "Boxing=%d\n",PlayerInfo[playerid][pBoxiSkill]);fwrite(hFile, var);
        format(var, 128, "KneeHead=%d\n",PlayerInfo[playerid][pKneeSkill]);fwrite(hFile, var);
        format(var, 128, "KungFu=%d\n",PlayerInfo[playerid][pKungSkill]);fwrite(hFile, var);
        format(var, 128, "GrabKick=%d\n",PlayerInfo[playerid][pGrabSkill]);fwrite(hFile, var);
        format(var, 128, "Elbow=%d\n",PlayerInfo[playerid][pElbowSkill]);fwrite(hFile, var);
        format(var, 128, "Tactical=%d\n",PlayerInfo[playerid][pTactical]);fwrite(hFile, var);
        format(var, 128, "SpecialF=%d\n",PlayerInfo[playerid][pSpecialF]);fwrite(hFile, var);
        format(var, 128, "DutyBanned=%d\n",PlayerInfo[playerid][pDBanned]);fwrite(hFile, var);
        format(var, 128, "DDManager=%d\n",PlayerInfo[playerid][pDM]);fwrite(hFile, var);
        format(var, 128, "On‌Duty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
        format(var, 128, "DDTicket=%d\n",PlayerInfo[playerid][pDTK]);fwrite(hFile, var);
        format(var, 128, "DDSTicket=%d\n",PlayerInfo[playerid][pDSTK]);fwrite(hFile, var);
        format(var, 128, "CDPlayer=%d\n",PlayerInfo[playerid][pCD]);fwrite(hFile, var);
        format(var, 128, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
        format(var, 128, "HydraDriver=%d\n",PlayerInfo[playerid][pHydraR]);fwrite(hFile, var);
        format(var, 128, "HunterDriver=%d\n",PlayerInfo[playerid][pHunterR]);fwrite(hFile, var);
        format(var, 128, "RhinoDriver=%d\n",PlayerInfo[playerid][pRhinoR]);fwrite(hFile, var);
        format(var, 128, "PredatorDriver=%d\n",PlayerInfo[playerid][pPredR]);fwrite(hFile, var);
        format(var, 128, "ViewPms=%d\n",PlayerInfo[playerid][pViewPms]);fwrite(hFile, var);
        format(var, 128, "AppearList=%d\n",PlayerInfo[playerid][pAppearList]);fwrite(hFile, var);
        format(var, 128, "AmmunationTime=%d\n",PlayerInfo[playerid][pAmmuTrainTime]);fwrite(hFile, var);
        format(var, 128, "PistolSkill=%d\n",PlayerInfo[playerid][pPistSkill]);fwrite(hFile, var);
        format(var, 128, "SilencedSkill=%d\n",PlayerInfo[playerid][pSilenSkill]);fwrite(hFile, var);
        format(var, 128, "DesertSkill=%d\n",PlayerInfo[playerid][pDesertSkill]);fwrite(hFile, var);
        format(var, 128, "ShotgunSkill=%d\n",PlayerInfo[playerid][pShotgSkill]);fwrite(hFile, var);
        format(var, 128, "SawnoffSkill=%d\n",PlayerInfo[playerid][pSawnSkill]);fwrite(hFile, var);
        format(var, 128, "CombatSkill=%d\n",PlayerInfo[playerid][pCombSkill]);fwrite(hFile, var);
        format(var, 128, "UziSkill=%d\n",PlayerInfo[playerid][pUziSkill]);fwrite(hFile, var);
        format(var, 128, "SMGSkill=%d\n",PlayerInfo[playerid][pSmgSkill]);fwrite(hFile, var);
        format(var, 128, "AK47Skill=%d\n",PlayerInfo[playerid][pAkSkill]);fwrite(hFile, var);
        format(var, 128, "M4Skill=%d\n",PlayerInfo[playerid][pM4Skill]);fwrite(hFile, var);
        format(var, 128, "SniperSkill=%d\n",PlayerInfo[playerid][pSnipSkill]);fwrite(hFile, var);
        format(var, 128, "TutorialDone=%d\n",PlayerInfo[playerid][pTutDone]);fwrite(hFile, var);
        format(var, 128, "RegularCount=%d\n",PlayerInfo[playerid][pRegularCount]);fwrite(hFile, var);
        format(var, 128, "PassportTime=%d\n",PlayerInfo[playerid][pPassportTime]);fwrite(hFile, var);
        format(var, 128, "OfficerTime=%d\n",PlayerInfo[playerid][pOfficerTime]);fwrite(hFile, var);format(var, 128, "Achievement0=%d\n",PlayerInfo[playerid][pAchievement0]);fwrite(hFile, var);
        format(var, 128, "Achievement1=%d\n",PlayerInfo[playerid][pAchievement1]);fwrite(hFile, var);
        format(var, 128, "Achievement2=%d\n",PlayerInfo[playerid][pAchievement2]);fwrite(hFile, var);
        format(var, 128, "Achievement3=%d\n",PlayerInfo[playerid][pAchievement3]);fwrite(hFile, var);
        format(var, 128, "Achievement4=%d\n",PlayerInfo[playerid][pAchievement4]);fwrite(hFile, var);
        format(var, 128, "Achievement5=%d\n",PlayerInfo[playerid][pAchievement5]);fwrite(hFile, var);
        format(var, 128, "Achievement6=%d\n",PlayerInfo[playerid][pAchievement6]);fwrite(hFile, var);
        format(var, 128, "Achievement7=%d\n",PlayerInfo[playerid][pAchievement7]);fwrite(hFile, var);
        format(var, 128, "Achievement8=%d\n",PlayerInfo[playerid][pAchievement8]);fwrite(hFile, var);
        format(var, 128, "Achievement9=%d\n",PlayerInfo[playerid][pAchievement9]);fwrite(hFile, var);
        format(var, 128, "Achievement10=%d\n",PlayerInfo[playerid][pAchievement10]);fwrite(hFile, var);
        format(var, 128, "Achievement11=%d\n",PlayerInfo[playerid][pAchievement11]);fwrite(hFile, var);
        format(var, 128, "Achievement12=%d\n",PlayerInfo[playerid][pAchievement12]);fwrite(hFile, var);
        format(var, 128, "Achievement13=%d\n",PlayerInfo[playerid][pAchievement13]);fwrite(hFile, var);
        format(var, 128, "Achievement14=%d\n",PlayerInfo[playerid][pAchievement14]);fwrite(hFile, var);
        format(var, 128, "Achievement15=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var);
        format(var, 128, "Achievement16=%d\n",PlayerInfo[playerid][pAchievement16]);fwrite(hFile, var);
        format(var, 128, "Achievement17=%d\n",PlayerInfo[playerid][pAchievement17]);fwrite(hFile, var);
        format(var, 128, "Achievement18=%d\n",PlayerInfo[playerid][pAchievement18]);fwrite(hFile, var);
        format(var, 128, "Achievement19=%d\n",PlayerInfo[playerid][pAchievement19]);fwrite(hFile, var);
        format(var, 128, "Achievement20=%d\n",PlayerInfo[playerid][pAchievement20]);fwrite(hFile, var);
        format(var, 128, "ShiftName=%d\n",PlayerInfo[playerid][pShiftName]);fwrite(hFile, var);
        format(var, 128, "Weapon=%d\n",PlayerInfo[playerid][pWeapon]);fwrite(hFile, var);
        format(var, 128, "Ammo=%d\n",PlayerInfo[playerid][pAmmo]);fwrite(hFile, var);
        format(var, 128, "Weapon2=%d\n",PlayerInfo[playerid][pWeapon2]);fwrite(hFile, var);
        format(var, 128, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
        format(var, 128, "Weapon3=%d\n",PlayerInfo[playerid][pWeapon3]);fwrite(hFile, var);
        format(var, 128, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
        format(var, 128, "Weapon4=%d\n",PlayerInfo[playerid][pWeapon4]);fwrite(hFile, var);
        format(var, 128, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
        format(var, 128, "Weapon5=%d\n",PlayerInfo[playerid][pWeapon5]);fwrite(hFile, var);
        format(var, 128, "Ammo5=%d\n",PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
        format(var, 128, "Weapon6=%d\n",PlayerInfo[playerid][pWeapon6]);fwrite(hFile, var);
        format(var, 128, "Ammo6=%d\n",PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
        format(var, 128, "Weapon7=%d\n",PlayerInfo[playerid][pWeapon7]);fwrite(hFile, var);
        format(var, 128, "Ammo7=%d\n",PlayerInfo[playerid][pAmmo7]);fwrite(hFile, var);
        format(var, 128, "Weapon8=%d\n",PlayerInfo[playerid][pWeapon8]);fwrite(hFile, var);
        format(var, 128, "Ammo8=%d\n",PlayerInfo[playerid][pAmmo8]);fwrite(hFile, var);
        format(var, 128, "Weapon9=%d\n",PlayerInfo[playerid][pWeapon9]);fwrite(hFile, var);
        format(var, 128, "Ammo9=%d\n",PlayerInfo[playerid][pAmmo9]);fwrite(hFile, var);
        format(var, 128, "Weapon10=%d\n",PlayerInfo[playerid][pWeapon10]);fwrite(hFile, var);
        format(var, 128, "Ammo10=%d\n",PlayerInfo[playerid][pAmmo10]);fwrite(hFile, var);
        format(var, 128, "Weapon11=%d\n",PlayerInfo[playerid][pWeapon11]);fwrite(hFile, var);
        format(var, 128, "Ammo11=%d\n",PlayerInfo[playerid][pAmmo11]);fwrite(hFile, var);
        format(var, 128, "Weapon12=%d\n",PlayerInfo[playerid][pWeapon12]);fwrite(hFile, var);
        format(var, 128, "Atc=%d\n",PlayerInfo[playerid][pAtc]);fwrite(hFile, var);
        format(var, 128, "AtcRadio=%d\n",PlayerInfo[playerid][pAtcRadio]);fwrite(hFile, var);
        format(var, 128, "Pending=%d\n",PlayerInfo[playerid][pPending]);fwrite(hFile, var);
        format(var, 128, "PendingInfo=%s\n",PlayerInfo[playerid][pPendingInfo]);fwrite(hFile, var);
        format(var, 128, "ChatMode=%d\n",PlayerInfo[playerid][pChatMode]);fwrite(hFile, var);
        format(var, 176, "Punishment1=%s\n",PlayerInfo[playerid][pPunishment1]);fwrite(hFile, var);
        format(var, 176, "Punishment2=%s\n",PlayerInfo[playerid][pPunishment2]);fwrite(hFile, var);
        format(var, 176, "Punishment3=%s\n",PlayerInfo[playerid][pPunishment3]);fwrite(hFile, var);
        format(var, 176, "Punishment4=%s\n",PlayerInfo[playerid][pPunishment4]);fwrite(hFile, var);
        format(var, 176, "Punishment5=%s\n",PlayerInfo[playerid][pPunishment5]);fwrite(hFile, var);
        format(var, 176, "Punishment6=%s\n",PlayerInfo[playerid][pPunishment6]);fwrite(hFile, var);
        format(var, 176, "Punishment7=%s\n",PlayerInfo[playerid][pPunishment7]);fwrite(hFile, var);
        format(var, 176, "Punishment8=%s\n",PlayerInfo[playerid][pPunishment8]);fwrite(hFile, var);
        format(var, 176, "NextPunishment=%d\n",PlayerInfo[playerid][pNextPunishment]);fwrite(hFile, var);
        format(var, 176, "PunishedTimes=%d\n",PlayerInfo[playerid][pPunished]);fwrite(hFile, var);
        format(var, 176, "TazerBullets=%d\n",PlayerInfo[playerid][pTazerBullets]);fwrite(hFile, var);
        format(var, 176, "LastSeen=%s\n",PlayerInfo[playerid][pLastSeen]);fwrite(hFile, var);
        format(var, 176, "RegistredDate=%s\n",PlayerInfo[playerid][pRegistredDate]);fwrite(hFile, var);
        format(var, 176, "Changed=%d\n",PlayerInfo[playerid][pChanged]);fwrite(hFile, var);
        fclose(hFile);
    }
       
}
tenta
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)