Radio Station Problem
#1

if i go to that location i dont hear music.

PHP код:
forward RadioScena(playerid);
                    public 
RadioScena(playerid)
                    {
                        if(!
IsPlayerConnected(playerid)) return 0;
                        if(
IsPlayerNPC(playerid)) return 1;
                        
                        if(
GetPlayerInterior(playerid) == 0)
                        {
                            if(
IsPlayerInRangeOfPoint(playerid,50.0,251.5308,-1807.7228,7.8359))
                            { 
                                if(!
GetPVarInt(playerid,"alhambra"))
                                {
                                    
SetPVarInt(playerid,"alhambra",1);
                                    
PlayAudioStreamForPlayer(playerid"http://dibiradio.info:8000/",251.5308,-1807.7228,7.8359,80.0,true);
                                   }  
//http://radio-crazy.is-a-chef.com:8024/
                            
}
                        }
                        else {
                            if(
GetPVarInt(playerid,"alhambra"))
                            {
                                  
DeletePVar(playerid,"alhambra");
                                   
StopAudioStreamForPlayer(playerid);
                            }
                        }
                        return 
1;
                    } 
Reply
#2

Try tchanging this
Код:
 if(!GetPVarInt(playerid,"alhambra"))
To this
Код:
 if(GetPVarInt(playerid,"alhambra"))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)