SA-MP Forums Archive
Help Me Please :( - 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: Help Me Please :( (/showthread.php?tid=629948)



Help Me Please :( - MiyuUchiha - 06.03.2017

Код:
CMD:mp3(playerid,params[])
{
   if(sscanf(params, "s[256]", url)) return SendClientMessage(playerid, 0x00FFFFFF, "Usage: /mp3 [URL]");
   {
	  if(strfind(url, ".mp3") != -1) return SendClientMessage(playerid, 0xFFFFFFF, "URL Must Be With .MP3!");
	  {
		  StopAudioStreamForPlayer(playerid);
		  PlayAudioStreamForPlayer(playerid, url);
	  }
   }
   return 1;
}  	  	  .
Help me I Got This Error
Код:
E:\Servers\ICEE\filterscripts\mp3player.pwn(18) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please Help


Re: Help Me Please :( - XStormiest - 06.03.2017

Where you do get the error at? line 18.


Re: Help Me Please :( - TopShooter2 - 06.03.2017

This one should work.
Код:
CMD:mp3(playerid,params[])
{
   if(sscanf(params, "s[256]", url)) return SendClientMessage(playerid, 0x00FFFFFF, "Usage: /mp3 [URL]");
   if(strfind(url, ".mp3") != -1) return SendClientMessage(playerid, 0xFFFFFFF, "URL Must Be With .MP3!");
   StopAudioStreamForPlayer(playerid); 
   PlayAudioStreamForPlayer(playerid, url);
   return 1;
}  	  	  .