[Ajuda] Ant Fake Kill
#6

Botei nas minhas "new"
Код:
new totaldemortes[MAX_PLAYERS];
Botei na minha public OnPlayerDeath(playerid, killerid, reason)
Код:
{
    totaldemortes[playerid]++;
    if(totaldemortes[playerid] >  2) return SendClientMessage(playerid,-1,"Crйditos a tio le le leo.!"),Ban(playerid);
    SetTimerEx("funfa", 1000, false, "i",playerid);
    return 1;
}
Botei nas minhas "forward's"
Код:
forward funfa(playerid);
botei nas minhas public certinho e aconteceu os dois warnings
Код:
public funfa(playerid)
{
    totaldemortes[playerid] = 0;
}
Код:
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8196) : warning 225: unreachable code
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8526) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          12148 bytes
Code size:          2382148 bytes
Data size:          2252264 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7159 cells (28636 bytes)
Total requirements: 4662944 bytes

2 Warnings.
Reply


Messages In This Thread
Ant Fake Kill - by matheuspain - 21.07.2012, 17:24
Re: Ant Fake Kill - by Gii - 21.07.2012, 18:45
Re: Ant Fake Kill - by leonardo1434 - 21.07.2012, 19:01
Re: Ant Fake Kill - by matheuspain - 21.07.2012, 20:36
Re: Ant Fake Kill - by leonardo1434 - 21.07.2012, 20:40
Re: Ant Fake Kill - by matheuspain - 21.07.2012, 21:15
Re: Ant Fake Kill - by Recolocado - 21.07.2012, 21:53
Re: Ant Fake Kill - by Arthenry - 21.07.2012, 21:57
Re: Ant Fake Kill - by matheuspain - 22.07.2012, 13:46
Re: Ant Fake Kill - by ShutDown_ - 22.07.2012, 15:34

Forum Jump:


Users browsing this thread: 4 Guest(s)