Help Me AudioStream!!!
#1

my code:
Код:
DIALOG:5(playerid, response, listitem, inputtext[])
{
	if(response)
	{
		if(listitem == 0)
		{
		    PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/bai-hat/E-Karik-Windy-Quyen/ZW668B9F.html");
		    SendClientMessage(playerid, COLOR_GREEN, "Ban Da Mo Radio Bai Hat E'-Karik");
		}
		if(listitem == 1)
		{
		    PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/bai-hat/Forever-Alone-JustaTee/ZW6UF98O.html"):
            SendClientMessage(playerid, COLOR_GREEN, "Ban Da Mo Radio Bai Hat FA-Justatee");
		}
	}
	return 1;
}
error:
Код:
C:\Documents and Settings\hung\Desktop\Servers\gamemodes\MyFirstGM.pwn(540) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\hung\Desktop\Servers\gamemodes\MyFirstGM.pwn(540) : error 029: invalid expression, assumed zero
i'm need for 0.3x and i'm vietnamese sorry for bad english.
Reply
#2

Quote:

DIALOG:5(playerid, response, listitem, inputtext[])
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/bai-hat/E-Karik-Windy-Quyen/ZW668B9F.html");
SendClientMessage(playerid, COLOR_GREEN, "Ban Da Mo Radio Bai Hat E'-Karik");
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/bai-hat/Forever-Alone-JustaTee/ZW6UF98O.html");
SendClientMessage(playerid, COLOR_GREEN, "Ban Da Mo Radio Bai Hat FA-Justatee");
}
}
return 1;
}

you've just wrote a : instead of ; in one lines
Reply
#3

Thanks very much
Reply
#4

How do i make a car spawn with the car id. sorry i'm lazy to write new thread.
Reply
#5

Not Work @@
Reply
#6

Quote:
Originally Posted by xganyx
Посмотреть сообщение
How do i make a car spawn with the car id. sorry i'm lazy to write new thread.
Have you ever thought about posting the code and we could assist you?
Reply
#7

when i going in my server i'm turn on the music, i don't hear anything. why ??
Reply
#8

It looks to me like the links to the stream you're trying to use are not a compatible format.
Reply
#9

cant yea only use shoutcast ones.?
Reply
#10

Shoutcast and other types of audio files, like MP3, are supposed to work yes. Although, I know there are limitations on which codecs are supported...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)