OnPlayerConnect Error -
GrandParadise - 29.09.2013
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
Re: OnPlayerConnect Error -
Voxel - 29.09.2013
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/
Re: OnPlayerConnect Error -
GrandParadise - 29.09.2013
Changed it and still the same error
Re: OnPlayerConnect Error -
Voxel - 29.09.2013
Show us the exact error line :\
Re: OnPlayerConnect Error -
EiresJason - 29.09.2013
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
Re: OnPlayerConnect Error -
Konstantinos - 29.09.2013
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 one = when it's about assigning.
Show us the line.
Re: OnPlayerConnect Error -
GrandParadise - 29.09.2013
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?
Re: OnPlayerConnect Error -
Konstantinos - 29.09.2013
In what line does it show this warning?
It's been shown as: PATH_NAME_HERE (LINE_HERE) : warning 215: expression has no effect
Re: OnPlayerConnect Error -
GrandParadise - 29.09.2013
Код:
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.
Re: OnPlayerConnect Error -
EiresJason - 29.09.2013
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 one = 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");