@Resolvido -
NuTShoT - 19.01.2013
@RESOLVIDO +rep A TODOS
Re: [Ajuda] Sequestro (Acho que й simples) -
Dolby - 19.01.2013
Nгo, use
Format para formatar a mensagem:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(Sequestrado(playerid) == 1)
{
new Texto[80];
format(Texto,80,"Fim de Sequestro. A vitima %s foi morta.", PlayerName(playerid));
SendClientMessageToAll(COR_AZTECAS, Texto);
return 1;
}
return 1;
}
e
SendClientMessageToAll nгo tem parametro
playerid.
Re: [Ajuda] Sequestro (Acho que й simples) -
NuTShoT - 19.01.2013
pawn Код:
C:\Users\Nihil\Desktop\BRA.pwn(12075) : error 012: invalid function call, not a valid address
C:\Users\Nihil\Desktop\BRA.pwn(12075) : warning 215: expression has no effect
C:\Users\Nihil\Desktop\BRA.pwn(12075) : error 001: expected token: ";", but found ")"
C:\Users\Nihil\Desktop\BRA.pwn(12075) : error 029: invalid expression, assumed zero
C:\Users\Nihil\Desktop\BRA.pwn(12075) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Re: [Ajuda] Sequestro (Acho que й simples) -
Dolby - 19.01.2013
Editei o cуdigo acima, tente novamente, e certifique-se de nгo estar tirando nenhum ponto e virgula do final de cada funзгo.
@Resolvido -
NuTShoT - 19.01.2013
@RESOLVIDO +rep A TODOS
Re: [Ajuda] Sequestro (Acho que й simples) -
Dolby - 19.01.2013
Dк uma olhada na linha 12074, provavelmente vocк nгo usou
; para finalizar a linha( no fim da funзгo ).
Re: [Ajuda] Sequestro (Acho que й simples) -
NuTShoT - 19.01.2013
Nгo. O problema acho que estб no code:
pawn Код:
if(Sequestrado(playerid) == 1)
{
new Texto[80];
format(Texto,80,"Fim de Sequestro. A vitima %s foi morta.", PlayerName(playerid));
SendClientMessageToAll(COR_AZTECAS, Texto);
return 1;
}
Serб que alguйm pode fazer um tipo quando alguйm sequestrado for morto. Aparecer a mensagem para todos.
Re: [Ajuda] Sequestro (Acho que й simples) -
tonisantolia - 19.01.2013
pawn Код:
if(Sequestrado[playerid] == 1)
{
new Texto[80];
format(Texto,sizeof Texto,"Fim de Sequestro. A vitima %s foi morta.", PlayerName(playerid));
SendClientMessageToAll(COR_AZTECAS, Texto);
return 1;
}
Re: [Ajuda] Sequestro (Acho que й simples) -
NuTShoT - 19.01.2013
Quote:
Originally Posted by tonisantolia
pawn Код:
if(Sequestrado[playerid] == 1) { new Texto[80]; format(Texto,sizeof Texto,"Fim de Sequestro. A vitima %s foi morta.", PlayerName(playerid)); SendClientMessageToAll(COR_AZTECAS, Texto); return 1; }
|
Vlw jб tinha resolvido mais vlw mesmo assim
Re: [Ajuda] Sequestro (Acho que й simples) -
tonisantolia - 19.01.2013
Quote:
Originally Posted by NuTShoT
Vlw jб tinha resolvido mais vlw mesmo assim 
|
Precisar estamos ai.