#1

Hey,yo can somebody help me with creating simple stream script? It can be usefull for events on RP servers - is that possible to play own music ( url ) in interior? " Someone enters Alhambra then he hear music from shoutcas"
Reply
#2

If you do not post a code, we can't help. We're here to help you with your code, not to create one.

Anyway, search the forums or use ****** to find functions or even an tutorial on how to make such a system.
Reply
#3

Ok i have something here but it dont work.

Код:
public OnPlayerUpdate(playerid)
{
        if(!IsPlayerConnected(playerid)) return 0;
        if(IsPlayerNPC(playerid)) return 1;
        
        // Handle playing SomaFM at the alhambra
        if(GetPlayerInterior(playerid) == 17) {
         if(IsPlayerInRangeOfPoint(playerid,70.0,489.5824,-14.7563,1000.6797)) { // alhambra middle
                 if(!GetPVarInt(playerid,"alhambra")) {
                  SetPVarInt(playerid,"alhambra",1);
                  PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls",480.9575,-3.5402,1002.0781,40.0,true);
                        }
                }
        }
        else {
                if(GetPVarInt(playerid,"alhambra")) {
                         DeletePVar(playerid,"alhambra");
                         StopAudioStreamForPlayer(playerid);
                }
        }
        
        return 1;
}
Also i got these errors when i am compiling it.
Код:
x:\Program Files (x86)\x\x\x\x.pwn(35744) : warning 217: loose indentation
x:\Program Files (x86)\x\x\x\x.pwn(35763) : warning 225: unreachable code
x:\Program Files (x86)\x\x\x\x.pwn(35763) : warning 217: loose indentation
Reply
#4

Maybe here i do something wrong.I am newbie in pawno so don't hate me
Код:
public OnPlayerUpdateEx(playerid) 
{
	if(!IsPlayerConnected(playerid)) return 0;
        if(IsPlayerNPC(playerid)) return 1;

        // Handle playing SomaFM at the alhambra
        if(GetPlayerInterior(playerid) == 17) {
         if(IsPlayerInRangeOfPoint(playerid,70.0,489.5824,-14.7563,1000.6797)) { // alhambra middle
                 if(!GetPVarInt(playerid,"alhambra")) {
                  SetPVarInt(playerid,"alhambra",1);
                  PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/60nznr8vvf/David_Guetta_-_Turn_Me_On_ft._Nicki_Minaj.mp3",489.5824,-14.7563,1000.6797,40.1,true);
                        }
                }
        }
        else {
                if(GetPVarInt(playerid,"alhambra")) {
                         DeletePVar(playerid,"alhambra");
                         StopAudioStreamForPlayer(playerid);
                }
        }

        return 1;
	if(IsPlayerConnected(playerid))
	{
		if(gPlayerLogged[playerid])
		{
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "x/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, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);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, 128, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 128, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
				format(var, 128, "Sex=%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, 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, "SexSkill=%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, "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, "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);
				format(var, 176, "Banned=%d\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var);
				format(var, 176, "Zarada=%d\n",PlayerInfo[playerid][pZarada]);fwrite(hFile, var);
				format(var, 176, "Credit=%d\n",PlayerInfo[playerid][pKredit]);fwrite(hFile, var);
				format(var, 176, "PinCode=%d\n",PlayerInfo[playerid][pPinKod]);fwrite(hFile, var);
				format(var, 176, "TimeSmoked=%d\n",PlayerInfo[playerid][pTimesSmoked]);fwrite(hFile, var);
				format(var, 176, "Axe=%d\n",PlayerInfo[playerid][pAxe]);fwrite(hFile, var);
				format(var, 176, "Iron=%d\n",PlayerInfo[playerid][pIron]);fwrite(hFile, var);
				format(var, 176, "LungCancer=%d\n",PlayerInfo[playerid][pLungCancer]);fwrite(hFile, var);
				format(var, 176, "SmokeAddicted=%d\n",PlayerInfo[playerid][pSmokeAddicted]);fwrite(hFile, var);
				format(var, 176, "Dealer=%d\n",PlayerInfo[playerid][pDealer]);fwrite(hFile, var);
				fclose(hFile);
			}
		}
	}
	return 1;
}
Reply
#5

These are just warnings, however, you should learn how to use TAB. 35763, which line is that?
Reply
#6

35763
Код:
	if(IsPlayerConnected(playerid))
///
Ok i dont know but i repaired it but another problem came - when i leave alhambra sound is bugging music is playing but with lags.

///
And one more question - When i enter alhambra default music is playing. After it ends my stream starts - how to fix that?
Reply
#7

Ok now only i need help with this when i enter alhambra i hear default music after it startrs mine.
Reply
#8

I'm not sure, but I think you can't mute the default music. You could make an 'custom interior' and use that instead of the default one.
Reply
#9

Hmm so i have another question - Can i "copy" alhambra's interior and create new one without this music?
Reply
#10

Yes, I think that might be possible with the SA-MP Object Editor where you can copy multiple objects.

Good luck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)