08.09.2012, 21:33
(
Последний раз редактировалось Chenko; 09.09.2012 в 01:42.
)
Try this:
Also, to format the IP you use "%s" as it counts as a string.
Код:
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); }