28.01.2012, 23:56
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.
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?
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; }