if(dialogid == 366)
{
new url;
new file = ini_openFile("radio.ini");
if(ini_getInteger(file, inputtext, url) == 0)
{
new string[256];
format(string,sizeof(string),"[Radio]You start Radio ID:%s",inputtext);
new string2[256];
format(string2,sizeof(string2),"http://%d/listen.pls",url);
PlayAudioStreamForPlayer(playerid, string2 );
SendClientMessage(playerid,-1,string);
}
else
{
new string2[256];
format(string2,sizeof(string2),"[Radio]Invalid ID:%s",inputtext);
SendClientMessage(playerid,-1,string2);
}
iniClose(file);
}
79.124.67.182:8030
format(string2,sizeof(string2),"http://%d/listen.pls",url);
|
You didn't define the variable url as a string.
Modify your code so the variable actually is a string. And make sure you save it in the variable as such. |
if(dialogid == 366)
{
new url[124];
new file = ini_openFile("radio.ini");
if(ini_getInteger(file, inputtext, url) == 0)
{
new string[256];
format(string,sizeof(string),"[Radio]You start Radio ID:%s",inputtext);
new string2[256];
format(string2,sizeof(string2),"http://%s/listen.pls",url);
PlayAudioStreamForPlayer(playerid, string2 );
SendClientMessage(playerid,-1,string);
}
else
{
new string2[256];
format(string2,sizeof(string2),"[Radio]Invalid ID:%s",inputtext);
SendClientMessage(playerid,-1,string2);
}
iniClose(file);
}