25.07.2013, 10:51
Can SomeHelp me with this command im going crazy to fix it and couldn't find by anywhere how to make it by strcmp:
When Im using Params Insted of str, it gives me an error in game "unknown command".
(im not using zcmd only dcmd, cause zcmd crashes all my commands)
So i tried to make it strcmp and it just shows ingame "Audio Stream: [NOTINGHERE]"
Help me fixing this please
When Im using Params Insted of str, it gives me an error in game "unknown command".
(im not using zcmd only dcmd, cause zcmd crashes all my commands)
So i tried to make it strcmp and it just shows ingame "Audio Stream: [NOTINGHERE]"
Код:
stock PlayStreamForAll(playerid) { foreach(Player, i) { StopAudioStreamForPlayer(i); PlayAudioStreamForPlayer(i, str); print("[AdmCmd]: Admin Is Streaming Music Globally."); } return 1; }
Код:
if(strcmp(cmd, "/stream", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1) { new str[128]; foreach(Player, i) { PlayStreamForAll(str); } } else { SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !"); } }