SA-MP Forums Archive
Shoutcast - 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: Shoutcast (/showthread.php?tid=332158)



Shoutcast - bashar0151 - 07.04.2012

Hey i followed a tut on how to set up shoutcast and i have filled in the right info but when i load up the server i get an error with the audio.pwn filterscript when the server loads is says that it unable to load audio.amx so i opened the file with pawno and saved as an amx and when i load the server it crashes, what shall i do to get this working?




here is the codes i have used on my gamemode http://pastebin.com/avYZCWHf


Re: Shoutcast - Mark™ - 07.04.2012

The .amx is missing from Filterscripts folder.


Re: Shoutcast - bashar0151 - 07.04.2012

were can i get the amx cos i got given only a pwn what should i do?


Re: Shoutcast - Reklez - 07.04.2012

Open the .pwn file then compile it


Re: Shoutcast - Mark™ - 07.04.2012

Quote:
Originally Posted by bashar0151
Посмотреть сообщение
were can i get the amx cos i got given only a pwn what should i do?
Move your .pwn to Filterscripts folder, open pawno, load the .pwn file and hit F5, the compiled .amx will be located below the .pwn in Filterscripts folder.


Re: Shoutcast - bashar0151 - 07.04.2012

Quote:
Originally Posted by bashar0151
Посмотреть сообщение
were can i get the amx cos i got given only a pwn what should i do?
Quote:
Originally Posted by Reklez
Посмотреть сообщение
Open the .pwn file then compile it
i just got this message fatal error 100: cannot read from file: "audio"


Re: Shoutcast - Reklez - 07.04.2012

Download the audio.inc and its plugin here!


Re: Shoutcast - Mark™ - 07.04.2012

Extract audio.inc from the plugin package, put it in your pawno >> include folder, recompile your script again.


Re: Shoutcast - bashar0151 - 07.04.2012

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
Extract audio.inc from the plugin package and put it in your pawno >> include folder, recompile your script again.
i keep gettin fatal error 100


Re: Shoutcast - xXitsgodzillaXx - 07.04.2012

Quote:
Originally Posted by bashar0151
Посмотреть сообщение
i keep gettin fatal error 100
why not try somthing a little more easier? try this.

pawn Код:
public OnPlayerConnect(playerid)
{
      PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022");
      reuturn 1;
}