Audio
#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


Messages In This Thread
Audio - by PawelQ - 07.01.2014, 12:19
Re: Audio - by offon - 07.01.2014, 12:21
Re: Audio - by PawelQ - 07.01.2014, 12:24
Re: Audio - by PawelQ - 07.01.2014, 12:29
Re: Audio - by offon - 07.01.2014, 12:30
Re: Audio - by PawelQ - 07.01.2014, 12:33
Re: Audio - by PawelQ - 07.01.2014, 12:52
Re: Audio - by offon - 07.01.2014, 12:59
Re: Audio - by PawelQ - 07.01.2014, 13:02
Re: Audio - by offon - 07.01.2014, 13:06

Forum Jump:


Users browsing this thread: 3 Guest(s)