30.09.2013, 20:35
Greetings,
Hi users, okay I was making a simple command like when an admin use /astream [mp3 link] all teh serevr listen the song, but it doesen`t wotk. Wehn I try to use it I get this in the server:
And I don`t know why the server can not read the mp3 link
Here is my code:
If anyone can help me
Regards,
Pablo.
Hi users, okay I was making a simple command like when an admin use /astream [mp3 link] all teh serevr listen the song, but it doesen`t wotk. Wehn I try to use it I get this in the server:
pawn Код:
Audio Stream:
(For example if I have 3 players conected send the same 3 times)
Here is my code:
pawn Код:
CMD:astream(playerid, params[])
{
if(gPlayerInfo[playerid][pAdmin] >= 4)
{
new string[128];
format(string, sizeof(string), "SERVER: Administrator %s has putted music", GetName(playerid));
SendClientMessageToAll(COL_ORANGE, string);
{
foreach(Player, i)
{
if(isnull(params)) return SendClientMessage(playerid, -1, "{878787}USAGE: /music [mp3 link]");
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(string, sizeof(string), "%s");
PlayAudioStreamForPlayer(i, string);
}
}
}
}
} else SendClientMessage(playerid, -1, "SERVER: You are not allowed to use this command");
return 1;
}
Regards,
Pablo.