28.01.2012, 00:26
Howdy, Im using the PlayAudioStreamForPlayer function and im coming up with an issue.
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?
Код:
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;
}
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?

