[Ajuda] Warnings. - 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] Warnings. (
/showthread.php?tid=297711)
[Ajuda] Warnings. -
Baigou - 17.11.2011
Ja tentei tudo quanter forma, mas esse aviso ta me dando as loucuras D; alguem pode me ajuda?
por favor.
pawn Код:
C:\Documents and Settings\Wallace\Desktop\Servidor de Samp\gamemodes\Life.pwn(21531) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
Re: Alguem ajuda? :( Warnings. -
Kostas' - 17.11.2011
Faзa Ctrl + f e encontrar o "OnPlayerTakeDamage" e excluн-lo.
Re: Alguem ajuda? :( Warnings. -
Lуs - 17.11.2011
Quote:
Originally Posted by Kostas'
Faзa Ctrl + f e encontrar o "OnPlayerTakeDamage" e excluн-lo.
|
Nгo lк isso que ele escreveu.
Quote:
Originally Posted by Baigou
Ja tentei tudo quanter forma, mas esse aviso ta me dando as loucuras D; alguem pode me ajuda? por favor.
pawn Код:
C:\Documents and Settings\Wallace\Desktop\Servidor de Samp\gamemodes\Life.pwn(21531) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
|
Tente:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
new weaponname[24];
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
format(string, sizeof(string), "%s has made %.0f damage to %s, weapon: %s", attacker, amount, victim, weaponname);
SendClientMessageToAll(0xFFFFFFFF, string);
}
return 1;
}
Re: Alguem ajuda? :( Warnings. -
ViniBorn - 17.11.2011
Essa funзгo sу й nativa na 0.3d
Vocк deve estar usando uma versгo inferior.
Re: Alguem ajuda? :( Warnings. -
Baigou - 17.11.2011
._.mas quando abre a public ja vem uma new..
dai nгo posso dar return man o_O
Re: Alguem ajuda? :( Warnings. -
Lуs - 17.11.2011
Quote:
This callback does not handle returns.
|
Wiki SA:MP