21.07.2012, 21:15
Botei nas minhas "new"
Botei na minha public OnPlayerDeath(playerid, killerid, reason)
Botei nas minhas "forward's"
botei nas minhas public certinho e aconteceu os dois warnings
Код:
new totaldemortes[MAX_PLAYERS];
Код:
{ 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; }
Код:
forward funfa(playerid);
Код:
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.