DJ System Issue
#5

Tanush, Your command gives me Unkown Command error. Coole, Yours crashes the server.


I was able to fix it, and here is what i have.

Код:
CMD:dj(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        new text[60],pName[MAX_PLAYER_NAME],string[128];
		new songid[40];
        if(sscanf(params, "ds[125]",songid,text)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /dj [Dropbox ID] [Filename]");
        for(new i = 0; i < MAX_PLAYERS; i++)
		{
			format(string,sizeof(string),"http://dl.dropbox.com/u/""%d""/""%s"".mp3",songid,text);
        	PlayAudioStreamForPlayer(i,string);
		}
    }
    return 1;
}
It works and all, Expect if i have a song lets say Kayne West Power, The Spaces = %s but SAMP places it at # Any way i can fix that?
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: 1 Guest(s)