[DUVIDA] Fazer comando /tocar
#3

Quote:
Originally Posted by Hardware
Посмотреть сообщение
Os parвmetros sгo do PlayAudioStreamForPlayer sгo assim:
pawn Код:
PlayAudioStreamForPlayer(playerid, url[], X, Y, Z, distвncia, usepos);
Mas no FS que eu tava fazendo de mъsicas ele pegou sem isso, nгo dб erro nem nada, e funciona. Acho que й opcional, nгo?

@Edit: Fiz assim e deu erro:
pawn Код:
if(strcmp(cmd, "/tocar", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use: /tocar [url]");
    new musica = strlen(tmp);
    new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
    GetPlayerPos(playerid, X, Y, Z);
    PlayAudioStreamForPlayer(playerid, musica,X, Y, Z, Distance, 1);
    return 1;
}
error 035: argument type mismatch (argument 2)
C:\Users\Andrйa\Downloads\Arquivos, Ana\Ajudando os outros\gamemodes\Testando.pwn(129) : warning 204: symbol is assigned a value that is never used: "Distance"
C:\Users\Andrйa\Downloads\Arquivos, Ana\Ajudando os outros\gamemodes\Testando.pwn(12 : warning 204: symbol is assigned a value that is never used: "musica"
Reply


Messages In This Thread
[DUVIDA] Fazer comando /tocar - by humildadeforever - 30.01.2012, 17:41
Re: [DUVIDA] Fazer comando /tocar - by Hardware - 30.01.2012, 17:54
Re: [DUVIDA] Fazer comando /tocar - by humildadeforever - 30.01.2012, 17:56
Re: [DUVIDA] Fazer comando /tocar - by Hardware - 30.01.2012, 18:33
Re: [DUVIDA] Fazer comando /tocar - by humildadeforever - 30.01.2012, 21:52
Re: [DUVIDA] Fazer comando /tocar - by Hardware - 30.01.2012, 21:54
Re: [DUVIDA] Fazer comando /tocar - by [Pawno] - 30.01.2012, 22:02
Re: [DUVIDA] Fazer comando /tocar - by Don_Speed - 30.01.2012, 22:02
Re: [DUVIDA] Fazer comando /tocar - by humildadeforever - 30.01.2012, 22:13
Re: [DUVIDA] Fazer comando /tocar - by Hardware - 30.01.2012, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)