SA-MP Forums Archive
Define a website - 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: Define a website (/showthread.php?tid=332585)



Define a website - aNdReSk - 08.04.2012

Hello I cant manage to define a website
since the address has //, everything beyond that line gets commented.
any idea how to get around this

#define RADIO1 "http://www.blablabla.com"

Will use it so when i play i play RADIO1


Re: Define a website - .FuneraL. - 08.04.2012

Make it easier, choose to play music well, I'll give an example:

pawn Код:
if(strcmp("/music1", cmdtext, true) == 0)
{
    PlayAudioStreamForPlayer(playerid, "Link to mp3");
    return 1;
}



Respuesta: Define a website - aNdReSk - 08.04.2012

it's not easier as I need to use the link 3 times for this code. and pasting it 3 times x 15 choices becomes annoying! specially if i want to change them on the go :P


Re: Define a website - Sinner - 08.04.2012

Use:
pawn Код:
#define RADIO1 "http:\/\/www.blablabla.com"