SA-MP Forums Archive
[AJUDA] Include - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Include (/showthread.php?tid=289898)



[AJUDA] Include - xFernando_xD - 13.10.2011

Olб Pessoal,
O Meu Problema й Que Quando Eu Coloco A Include do OnPlayerShotPlayer No Meu GM, Ele Da Os Seguintes Erros!
pawn Код:
C:\Users\pc\Desktop\SERVER\pawno\include\servermoneyGM.inc(16) : error: 004: function "GMExit" is not implemented
C:\Users\pc\Desktop\SERVER\pawno\include\servermoneyGM.inc(16) : error: 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\pc\Desktop\SERVER\pawno\include\foreach.inc(16) : warning: 209: function "GMInit" should return a value
C:\Users\pc\Desktop\SERVER\pawno\include\foreach.inc(16) : warning: 201: redefinition of constant/macro (symbol "OnGameModeInit")
Se Precisar De Outros Codigos й So Avisar!
Obrigado!


Re: [AJUDA] Include - Macintosh - 13.10.2011

Poste as includes aqui. upe elas no pastebin.com


Re: [AJUDA] Include - [O.z]Caroline - 13.10.2011

function "GMExit" is not implemented
Estб usando esta funзгo de forma errada.

function "OnPlayerHaveExtraCash" is not implemented
estґґa tambйm usando de forma errada.

redefinition of constant/macro (symbol "OnGameModeInit")
tem dois OnGameMode Inits, apague 1.


Re: [AJUDA] Include - xFernando_xD - 13.10.2011

Ta Ae AS Includes!

OPSP>> http://pastebin.com/FG7dmTZs
servermoneyGM >> http://pastebin.com/gMS8pVXz
foreach >> http://pastebin.com/P4FLLCZe


Re: [AJUDA] Include - xFernando_xD - 13.10.2011

alguem?


Re: [AJUDA] Include - xFernando_xD - 13.10.2011

pawn Код:
public ServerMoneyCB()
{
    CallLoop(ServerSidep,MAX_PLAYERS)
    {
        if(IsPlayerConnected(ServerSidep))
        {
            if(GetPlayerMoney(ServerSidep) != ServerSideCash[ServerSidep])
            {
                new H4xc4sh=GetPlayerMoney(ServerSidep);
                H4xc4sh=H4xc4sh-ServerSideCash[ServerSidep];
            ===>>>  if(H4xc4sh > CALLBACK_AMOUNT) OnPlayerHaveExtraCash(ServerSidep,H4xc4sh);
            }
            GivePlayerMoney(ServerSidep,-GetPlayerMoney(ServerSidep));
            GivePlayerMoney(ServerSidep,ServerSideCash[ServerSidep]);
        }
       
    }
    return 1;
}
Ajuda!! so ESsa Linha Com ===>>> Da Erro Agora!!