DJ System Issue
#1

Howdy, Im using the PlayAudioStreamForPlayer function and im coming up with an issue.

Код:
CMD:dj(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
		new text,pName[MAX_PLAYER_NAME],string[128];
		if(sscanf(params, "s[125]",text)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /dj [Dropbox ID] [Filename]");
	  	else
	  	{
	  	
	  	    PlayAudioStreamForPlayer(playerid,"%s",text);
		}
	}
	return 1;
}
Thats the code i just made

But the problem is, %s is not being replaced with the text i would like to use, as it is thinking that the audio file is %s.

Any suggestions?
Reply


Messages In This Thread
DJ System Issue - by Shockey HD - 28.01.2012, 00:26
Re: DJ System Issue - by coole210 - 28.01.2012, 03:12
Re: DJ System Issue - by Tanush123 - 28.01.2012, 03:14
Re: DJ System Issue - by jamesbond007 - 28.01.2012, 03:47
Re: DJ System Issue - by Shockey HD - 28.01.2012, 23:56
Re: DJ System Issue - by Tanush123 - 29.01.2012, 11:18
Re: DJ System Issue - by Shockey HD - 29.01.2012, 17:50

Forum Jump:


Users browsing this thread: 2 Guest(s)