[Ajuda] Onplayerdesconect Warning
#1

pediu isso aq

pawn Код:
if(PlayerInfo[killerid][pHeadValue] > 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(PlayerInfo[playerid][pLider] == 8  || PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 24  || PlayerInfo[playerid][pMembro] == 24)
                {
                    if(GoChase[playerid] == killerid)
                    {
                        ConsumingMoney[playerid] = 1;
                        format(string, sizeof(string), "<< [%s] Assassino %s foi morto por %s e perdeu o contrato >>",NomeORG(playerid), PlayerName(playerid),PlayerName(killerid));
                        SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_YELLOW, string);
                        PlayerInfo[killerid][pHeadValue] = 0;
                        GotHit[killerid] = 0;
                        GetChased[killerid] = 999;
                        GoChase[playerid] = 999;
                    }
                }
            }
        }
        killerid = INVALID_PLAYER_ID;
        ShowGz(playerid);
    }
}
C:\Users\Gustavo\Desktop\BSR GM OF - Cуpia\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(11562) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 14348 bytes
Code size: 3366628 bytes
Data size: 3116864 bytes
Stack/heap size: 16384 bytes; estimated max. usage=6990 cells (27960 bytes)
Total requirements: 6514224 bytes

1 Warning.
Reply


Messages In This Thread
Onplayerdesconect Warning - by zGuigui2068 - 02.04.2016, 00:41
Re: Onplayerdesconect Warning - by SkullFire - 02.04.2016, 00:48
Re: Onplayerdesconect Warning - by zGuigui2068 - 02.04.2016, 01:15
Re: Onplayerdesconect Warning - by SkyneTSAMP - 02.04.2016, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)