HTTP() tutorial - 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: HTTP() tutorial (
/showthread.php?tid=621384)
HTTP() tutorial -
NeXoR - 10.11.2016
Hey guys, I am completely new to the HTTP function, and I was wondering about something
I have seen servers that can play songs from ******* links, and present the name aswell
The converter is
http://www.*******inmp3.com
I can do the part of the PlayAudio, but how can I retrieve the actual name using HTTP ?
Re: HTTP() tutorial -
denNorske - 10.11.2016
Do http_get and check what you retrieve - and from that you should be able to see what you need to do
https://sampwiki.blast.hk/wiki/HTTP
The response is retrieved as plain text. Using SA-MP's default functions you can strfind / strcmp and so on, in order to get what you need