PlayAudioStreamForPlayer - 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: PlayAudioStreamForPlayer (
/showthread.php?tid=442315)
PlayAudioStreamForPlayer -
HDFord - 06.06.2013
I tried to make a code wich you can write in a custom URL for a internet radio station. It seems like I cant use strings nor integers to get it working, all I get is an error in Pawno.
Heres my test code.
pawn Код:
CMD:radio(playerid, params[])
{
new station;
if(sscanf(params,"s",station)) return SendClientMessage(playerid,0xFF0000,"Hmm...");
else
{
PlayAudioStreamForPlayer(playerid,station);
}
return 1;
}
Re: PlayAudioStreamForPlayer -
SilverKiller - 06.06.2013
pawn Код:
CMD:radio(playerid, params[])
{
new station[128];
if(sscanf(params,"s[128]",station)) return SendClientMessage(playerid,0xFF0000,"Hmm...");
else
{
PlayAudioStreamForPlayer(playerid, station);
}
return 1;
}
This works fine for me.
AW: PlayAudioStreamForPlayer -
HurtLocker - 06.06.2013
I don't know how to play a radio station on samp but the input must definately be a url
Re: PlayAudioStreamForPlayer -
Pottus - 06.06.2013
Why would you need to use sscanf() params is already a string lol.