SA-MP Forums Archive
Radio Station Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Radio Station Problem (/showthread.php?tid=390733)



Radio Station Problem - Akcent_Voltaj - 07.11.2012

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;
                    } 



Re: Radio Station Problem - Stu1 - 07.11.2012

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