PlayAudioStreamForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStreamForPlayer (
/showthread.php?tid=327839)
PlayAudioStreamForPlayer -
[HHT]DRON - 22.03.2012
help to correct errors please.
Код:
D:\Games\SAMP сервер\SampDM\gamemodes\SampDM.pwn(387) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Games\SAMP сервер\SampDM\gamemodes\SampDM.pwn(387) : error 002: only a single statement (or expression) can follow each "case"
D:\Games\SAMP сервер\SampDM\gamemodes\SampDM.pwn(387) : error 029: invalid expression, assumed zero
D:\Games\SAMP сервер\SampDM\gamemodes\SampDM.pwn(387) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
case 0: PlayAudioStreamForPlayer(playerid,"URL песни"); MusicTimer = 1; SetTimerEx("StopMusic",MAX_CONNECT_MUSIC * 1000,0,"i",playerid);
Re: PlayAudioStreamForPlayer -
[BP]Tony - 22.03.2012
The line ?Show me the code
Sorry my bad
Re: PlayAudioStreamForPlayer -
[HHT]DRON - 22.03.2012
Код:
switch(MusicTimer)
{
case 0: PlayAudioStreamForPlayer(playerid,"URL песни"); MusicTimer = 1; SetTimerEx("StopMusic",MAX_CONNECT_MUSIC * 1000,0,"i",playerid);
case 1: PlayAudioStreamForPlayer(playerid,"URL песни"); MusicTimer = 2; SetTimerEx("StopMusic",MAX_CONNECT_MUSIC * 1000,0,"i",playerid);
case 2: PlayAudioStreamForPlayer(playerid,"URL песни"); MusicTimer = 0; SetTimerEx("StopMusic",MAX_CONNECT_MUSIC * 1000,0,"i",playerid);
}
PlayAudioStreamForPlayer - how it to use?
Re: PlayAudioStreamForPlayer -
[BP]Tony - 22.03.2012
This is better than yours.
Click on "this ""up"
Re: PlayAudioStreamForPlayer -
[HHT]DRON - 22.03.2012
thanks