PlayAudioStreamForPlayer(playerid, "URL da mъsica aqui");
CMD:link(playerid, Lucas[])
{
new Link[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estбs logado na RCON.");
if(sscanf(Lucas, "s[128]", Link)) return SendClientMessage(playerid, -1, "/link [url]");
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
PlayAudioStreamForPlayer(i, Link);
return 1;
}
jovem o #LUCA[S] postou o comando na forma de zcmd,estб dando erro em que linha? vc usa zcmd ou strcmd?
|
\Users\JL\Desktop\Samp Brasil City Life\filterscripts\asd.pwn(1) : warning 203: symbol is never used: "link" C:\Users\JL\Desktop\Samp Brasil City Life\filterscripts\asd.pwn(1 -- 9) : error 013: no entry point (no public functions) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
if(strcmp("/dj", cmdtext, true, 6) == 0)
{
if(Player[playerid][pDJ] == 1) // Coloque sua vбriavel de Admin
{
ShowPlayerDialog(playerid, 1029, DIALOG_STYLE_INPUT, "Sistema de DJ", "Coloque o Link da sua mъsica em MP3:", "Ouvir", "Sair");
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo para usar esse comando!");
}
return 0x01;
}
if(dialogid == 1029)
{
if(response == 0)
{
return 0x01;
}
if(response == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, inputtext);
}
new sendername[24];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* O DJ %s Esta Tocando uma Mъsica (Aumenta o Som e Sinta a Vibe!)", sendername);
SendClientMessageToAll(0xFF7777AA, string);
return 0x01;
}
}
C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4101) : warning 217: loose indentation C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4103) : error 017: undefined symbol "Player" C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4103) : warning 215: expression has no effect C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4103) : error 001: expected token: ";", but found "]" C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4103) : error 029: invalid expression, assumed zero C:\Users\JL\Desktop\Samp Brasil City Life\gamemodes\BetaRP.pwn(4103) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |