SA-MP Forums Archive
[Ajuda] Forward ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Forward ! (/showthread.php?tid=480615)



Forward ! - ZaturN - 11.12.2013

Pessoal me ajuda aqui, como eu defino essa forward ?

ERRO:
PHP код:
C:\Users\Erickson\Desktop\brvgm.pwn(24665) : warning 235: public function lacks forward declaration (symbol "Chatc") 
LINHA:
PHP код:
public Chatc(COLOR,const string[],level,playerid)
{
for(new 
i = 0; i < MAX_PLAYERS; i++)
{
if(
IsPlayerConnected(i))
{
new 
aname[MAX_PLAYER_NAME];
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
GetPlayerName(i, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(
dini_Int(file, "SClan") == 1 && dini_Int(file2, "SClan") == 1){
if(
dini_Int(file, "Clan") == dini_Int(file2, "Clan")){
SendClientMessage(i, COLOR, string);
}
}
}
}
return 
1;
} 



Re: Forward ! - Dolby - 11.12.2013

pawn Код:
forward Chatc(COLOR,const string[],level,playerid);
Simplesmente mudando a keyword e adicionando ponto e vнrgula no final.


Re: Forward ! - ZaturN - 11.12.2013

Vlw mano, funcionou !