24.06.2013, 06:44
I gotta use strcmp becuz of the processor.. And It spams the message Song is playing when i havent even typed a URL
Can someone fix this plz
Can someone fix this plz
pawn Код:
if(!strcmp(cmdtext, "/playall", true))
{
if(PlayerInfo[playerid][pDJ] < 1) return SendClientMessage(playerid, COLOR_WHITE, "DJ Only Command");
if(isnull(cmdtext))return SendClientMessage(playerid, -1, "/playall [url]");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
PlayAudioStreamForPlayer(i, cmdtext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can stop playing this song with /stopall");
SendClientMessageToAll(COLOR_LIGHTBLUE, "An DJ has started playing a song (use /stopaudio to stop this song for you");
}
return 1;
}