[Ajuda] Warnings.
#1

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")
Reply
#2

Faзa Ctrl + f e encontrar o "OnPlayerTakeDamage" e excluн-lo.
Reply
#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
#4

Essa funзгo sу й nativa na 0.3d

Vocк deve estar usando uma versгo inferior.
Reply
#5

._.mas quando abre a public ja vem uma new..

dai nгo posso dar return man o_O
Reply
#6

Quote:

This callback does not handle returns.

Wiki SA:MP
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)