Play Audio For Player - 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: Play Audio For Player (
/showthread.php?tid=310055)
Play Audio For Player -
Robert_Crawford - 10.01.2012
pawn Код:
CMD:music(playerid, params[])
{
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls"); //12720
return 1;
}
CMD:musicoff(playerid, params[])
{
StopAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
return 1;
}
Код:
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vx-rp.pwn(12720) : warning 202: number of arguments does not match definition
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vx-rp.pwn(16334) : warning 202: number of arguments does not match definition
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vx-rp.pwn(17538) : warning 203: symbol is never used: "RandomFireSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Re: Play Audio For Player -
Jochemd - 10.01.2012
If you saw the
wiki, you knew StopAudioStreamForPlayer only had one argument!
Re: Play Audio For Player -
lamarr007 - 11.01.2012
pawn Код:
CMD:music(playerid, params[])
{
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls"); //12720
return 1;
}
CMD:musicoff(playerid, params[])
{
StopAudioStreamForPlayer(playerid);
return 1;
}