OnPlayerConnect Error
#1

Code:
Код:
public OnPlayerConnect(playerid)
{
	    PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/l7rkr6ne7u/chicago_rapper_dead_bigtupnext_after_make_n_diss_record_at_lil_jay..da_product_dvd.mp4");
    	return 1;
}
Error:
Код:
warning 215: expression has no effect
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/l7rkr6ne7u/chicago_rapper_dead_bigtupnext_after_make_n_diss_record_at_lil_jay..da_product_dvd.mp4");
    return 1;
}
i advise u upload the music to mbox drive:
http://www.mboxdrive.com/
Reply
#3

Changed it and still the same error
Reply
#4

Show us the exact error line :\
Reply
#5

I think the error is that you're trying to stream an MP4 file(which is a video format) instead of an MP3 file.

Though, I haven't worked with PlayAudioStreamForPlayer yet so i'm unsure if that would make a difference. Though, reading this is what made me wrote this response :P

"url[] The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will play that playlist."
^ From https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Reply
#6

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
I think the error is that you're trying to stream an MP4 file(which is a video format) instead of an MP3 file.

Though, I haven't worked with PlayAudioStreamForPlayer yet so i'm unsure if that would make a difference. Though, reading this is what made me wrote this response :P

"url[] The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will play that playlist."
^ From https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Compiler has nothing to do with it. If the url is not valid, the song won't be played.

That warning is caused if you use == instead of single on‌e = when it's about assigning.

Show us the line.
Reply
#7

thanks for the help Jason, but i still get the same error.
It worked fine before.

Maybe i have to update something?

EDIT: What's a line?
Reply
#8

In what line does it show this warning?

It's been shown as: PATH_NAME_HERE (LINE_HERE) : warning 215: expression has no effect
Reply
#9

Код:
C:\Users\Ole\Desktop\LAST\gamemodes\LAST.pwn(571) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#10

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Compiler has nothing to do with it. If the url is not valid, the song won't be played.

That warning is caused if you use == instead of single on‌e = when it's about assigning.

Show us the line.
Yes I know but he posted this line as the error line, so I assumed there was more ways of getting that error as he doesn't use == or anything. I then noticed the .mp4 so I thought it could be that
pawn Код:
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/l7rkr6ne7u/chicago_rapper_dead_bigtupnext_after_make_n_diss_record_at_lil_jay..da_product_dvd.mp4");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)