[Ajuda] Warnings.
#3

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;
}
Reply


Messages In This Thread
[Ajuda] Warnings. - by Baigou - 17.11.2011, 12:35
Re: Alguem ajuda? :( Warnings. - by Kostas' - 17.11.2011, 12:38
Re: Alguem ajuda? :( Warnings. - by Lуs - 17.11.2011, 12:40
Re: Alguem ajuda? :( Warnings. - by ViniBorn - 17.11.2011, 12:46
Re: Alguem ajuda? :( Warnings. - by Baigou - 17.11.2011, 12:47
Re: Alguem ajuda? :( Warnings. - by Lуs - 17.11.2011, 12:52

Forum Jump:


Users browsing this thread: 3 Guest(s)