24.06.2013, 08:21
When i type /playall without entering anything with a space.. it shows Unknown Command.. but when i type it with a space.. Example: /playall redsasd, it dont show anything at all but it suppose to show playing a stream.. someone tell me how or show me how to fix
pawn Код:
if (!strcmp(cmdtext, "/playall", true, 11))
{
if(PlayerInfo[playerid][pDJ] < 1) return SendClientMessage(playerid, COLOR_WHITE, "DJ Only Command");
if(!cmdtext[11]) return SendClientMessage(playerid, -1, "USAGE: /playall [url]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, cmdtext[12]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can stop playing this song with /stopall");
SendClientMessage(i, COLOR_LIGHTBLUE, "An DJ has started playing a song (use /stopaudio to stop this song for you");
}
return 1;
}