Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Kewun on Aug 26, 2016, 07:26 AM

Title: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 07:26 AM
i ddi this:

function onScriptLoad() {
test <- CreateRadioStream( "RMF MAX", "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", true)
}

function onPlayerEnterVehicle(player,vehicle,seat)
{
player.Vehicle.Radio = test;
}

and i dont hear any radio straem..
Title: Re: radio stream doesn't work?
Post by: jayant on Aug 26, 2016, 07:48 AM
Quote from: Kewun on Aug 26, 2016, 07:26 AMfunction onScriptLoad() {
test <- CreateRadioStream( "RMF MAX", "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", true)
}

function onPlayerEnterVehicle(player,Vehicle,seat)
{
player.Vehicle.Radio = test;
}
According to parameter vehicle and not Vehicle
This should work.
Title: Re: radio stream doesn't work?
Post by: jayant on Aug 26, 2016, 07:49 AM
Quote from: Kewun on Aug 26, 2016, 07:26 AMfunction onScriptLoad() {
test <- CreateRadioStream( "RMF MAX", "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", true)
}

function onPlayerEnterVehicle(player,Vehicle,seat)
{
player.Vehicle.Radio = test;
}
According to parameter vehicle or Vehicle or according to you..
Notice the change,this should work.
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 07:53 AM
member variable not found
Title: Re: radio stream doesn't work?
Post by: jayant on Aug 26, 2016, 07:57 AM
function onScriptLoad() {
CreateRadioStream( "RMF MAX", "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", true)
}
I found this way,in my old script..Sit in a car and try to change station.
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 08:03 AM
still doesnt work

i tried without http://

also CreateRadioStream( 11, "RMF MAX", "http://www.miastomuzyki.pl/n/rmfmaxxx.pls", true)

i see the radio, but i cant hear anything from it ;/
Title: Re: radio stream doesn't work?
Post by: jayant on Aug 26, 2016, 08:12 AM
You should change try changing the link..Its all I can suggest lastly ;(
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 08:13 AM
well okay ill try other streams
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 03:45 PM
tried 5 diffrent urls.. didnt work... i think its vcmp buig..
[mergedate]1472199543[/mergedate]
i tried another 10 links.. not worked
Title: Re: radio stream doesn't work?
Post by: KAKAN on Aug 26, 2016, 03:47 PM
Quote from: Kewun on Aug 26, 2016, 03:45 PMtried 5 diffrent urls.. didnt work... i think its vcmp buig..
[mergedate]1472199543[/mergedate]
i tried another 10 links.. not worked
but it works in VKs server -_-
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 03:48 PM
but it doesnt work in my server -_-  i would need a working tested link for a radio stream or atleast how the url would look like
Title: Re: radio stream doesn't work?
Post by: KAKAN on Aug 26, 2016, 03:51 PM
try deez:-
CreateRadioStream( 1, "WOT", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=302916", true );random song though.
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 03:56 PM
cant hear anything ;c from this.
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 26, 2016, 04:44 PM
my fault, im a retard. music was set to 0% in options... fuuu thanks for help anyway
[mergedate]1472227186[/mergedate]
but isnt it illegal to add some radio streams.. ?
Title: Re: radio stream doesn't work?
Post by: KAKAN on Aug 26, 2016, 05:37 PM
Quote from: Kewun on Aug 26, 2016, 04:44 PMmy fault, im a retard. music was set to 0% in options... fuuu thanks for help anyway
lol, funniest thing xd

Quote from: Kewun on Aug 26, 2016, 04:44 PMbut isnt it illegal to add some radio streams.. ?
Hosting your own shoutcast and using the public shoutcast servers are legal( I think so. ), can't say about others.
Title: Re: radio stream doesn't work?
Post by: Thijn on Aug 28, 2016, 09:02 AM
Why would it be illegal? They are the ones who stream copyrighted music, so if someones at fault its the radio stations.
Title: Re: radio stream doesn't work?
Post by: Kewun on Aug 28, 2016, 02:51 PM
ok thanks thijn topic will b locked