[Ajuda] Erro na Hora de compilar!!!
#1

Bom,eu tavo fazendo o PlayAudioStreamForPlayer ai deu erro quando fui compilar,tб aqui o erro:

C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 037: invalid string (possibly non-terminated string)
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 029: invalid expression, assumed zero
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 029: invalid expression, assumed zero
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : fatal error 107: too many error messages on one line


e a linha que ta dando erro:

Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"https://www.dropbox.com/s/2asd4v0028d1hm1/01-fireflight-unbreakable.mp3);
Espero que alguem possa me ajuda.Obrigado.
Reply
#2

Tira isso:
PHP код:
https:// 
Reply
#3

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Tira isso:
PHP код:
https:// 
Eu tirei mais ainda continua os erros na mesma linha agora sгo esses:

C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 037: invalid string (possibly non-terminated string)
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 017: undefined symbol "www"
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : error 029: invalid expression, assumed zero
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(6212) : fatal error 107: too many error messages on one line

Serг que botei o PlayAudioStreamForPlayer(playerid no lugar errando?botei no comeзo da public OnPlayerConnect(playerid),serб que й no final
Reply
#4

pawn Код:
PlayAudioStreamForPlayer(playerid,"https://www.dropbox.com/s/2asd4v0028d1hm1/01-fireflight-unbreakable.mp3");
sу faltou um " no final do link
Reply
#5

Obrigado @Fort por me ajuda no PlayAudioStreamForPlayer(playerid.

So que agora ta dando problema no StopAudioStreamForPlayer(playerid); ta dando esse erros que eu nгo consigo arrumar:

C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(8324) : error 001: expected token: ";", but found "{"
C:\Users\Bruno silva\Desktop\Nova pasta (2)\gamemodes\BRL.pwn(8331) : warning 225: unreachable code


eu faзo que fiz alguma coisa errado nessas linhas:

{

StopAudioStreamForPlayer(playerid);

return 1;

}
return true;
}
Reply
#6

posta o codigo completo, e use a tag [pawn*] Code [/pawn] sem o *
Reply
#7

ta Aqui as linhas:

pawn Код:
{

StopAudioStreamForPlayer(playerid);

return 1;

}
    return true;
}
Reply
#8

alguma coisa tem que vir antes desse {
se tiver alguma coisa, posta ae.
Reply
#9

tem isso:

pawn Код:
if(PlayerInfo[playerid][pSkin] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
    else
    {
        if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
        else { PlayerInfo[playerid][pSkin] = 226; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
    }
    SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);
    OnPlayerSpawn(playerid)

{

StopAudioStreamForPlayer(playerid);

return 1;

}
    return true;
}
Reply
#10

o/
pawn Код:
//troque
OnPlayerSpawn(playerid)
//por
OnPlayerSpawn(playerid);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)