SA-MP Forums Archive
[AJUDA] Algm tem essas includes? - 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] Algm tem essas includes? (/showthread.php?tid=294729)



[AJUDA] Algm tem essas includes? - Rashid - 03.11.2011

sгo essas includes ...
Код HTML:
#include <a_samp>
#include <a_npc>
#include <Dini>
#include <a_players>
#include <servermoneyGM>
quando eu vo compilar aparece isso ..
Код HTML:
C:\Documents and Settings\Fernando\Desktop\Servers\BEG\gamemodes\BEG.pwn(3) : fatal error 100: cannot read from file: "Dini"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
e se eu faзo isso aqui ...
Код HTML:
#include <a_samp>
#include <a_npc>
//#include <Dini>
#include <a_players>
#include <servermoneyGM>
ele da esse erro...
Код HTML:
C:\Documents and Settings\Fernando\Desktop\Servers\BEG\gamemodes\BEG.pwn(5) : fatal error 100: cannot read from file: "servermoneyGM"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
eaai, algm pod me ajudar? '-'
@Edit
Quando eu coloco ele direto no pc, e abro o server fica td direitin ... ai ce eu abro ele no pawno e aperto pra compila ele ja nгo entra mais ... e ele ta so com o pwn '='



Re: [AJUDA] Algm tem essas includes? - Laercio - 03.11.2011

kkkk , faz down , das incluides, da versгo que vocк vai usar
por ex : a Versгo 0.3c ou d , sei lб '-'


Re: [AJUDA] Algm tem essas includes? - Rashid - 03.11.2011

eu seei la qual versгo eh essa '-'
e eu asho qe esse eh um GM roubado pelo evolution .-.



Re: [AJUDA] Algm tem essas includes? - Laercio - 03.11.2011

Porra a versгo do SAMP Client , que vocк quer uzar a versгo 0.3b , 0.3c a 0.3d , Porra meu '-'


Re: [AJUDA] Algm tem essas includes? - Rashid - 03.11.2011

aaah, eh 0.3c AIEUIWUIEUWUE '-'



Re: [AJUDA] Algm tem essas includes? - Laercio - 03.11.2011

Entгo procura no ****** ,

a Incluide tal , para a versгo 0.3c '-'


Re: [AJUDA] Algm tem essas includes? - Rashid - 03.11.2011

JA ACHEI , MAIS AGORA OLHA AI O ERRO QE TA DANDO !!
Код HTML:
C:\Documents and Settings\Fernando\Desktop\Servers\BEG\gamemodes\BEG.pwn(5) : fatal error 100: cannot read from file: "servermoneyGM"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: [AJUDA] Algm tem essas includes? - WLSF - 03.11.2011

Quote:
Originally Posted by Laercio
Посмотреть сообщение
Entгo procura no ****** ,

a Incluide tal , para a versгo 0.3c '-'
Dini ou Money com versгo 0.3c / d ?


Re: [AJUDA] Algm tem essas includes? - Rashid - 03.11.2011

a Dini parece qe arrumo, agora ta dando o erro desse money aii , e nгo to achando ele pra download nгo



Re: [AJUDA] Algm tem essas includes? - WLSF - 03.11.2011

Abre o bloco de notas bota isso, e salva como servermoneyGM.inc (:
pawn Код:
#define CallLoop(%1,%2) for(new %1; %1 < %2; %1++)
#define CALLBACK_AMOUNT 500

new SERVERSIDETIMER;
new ServerSideCash[MAX_PLAYERS];

public OnGameModeInit()
{
    ServerMoneyInit();
    return GMInit();
}

public OnGameModeExit()
{
    ServerMoneyExit();
    return GMExit();
}

forward GMInit();
forward GMExit();

ServerMoneyInit()
{
    SERVERSIDETIMER=SetTimer("ServerMoneyCB",1000,true);
    return 1;
}

ServerMoneyExit()
{
    KillTimer(SERVERSIDETIMER);
    return 1;
}


forward ServerMoneyCB();

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;
}


forward GivePlayerMoneyEx(playerid,cashgiven);
public GivePlayerMoneyEx(playerid,cashgiven)
{
    ServerSideCash[playerid]=ServerSideCash[playerid]+cashgiven;
    return 1;
}

forward ResetPlayerMoneyEx(playerid);
public ResetPlayerMoneyEx(playerid)
{
    ServerSideCash[playerid]=0;
    return 1;
}

forward GetPlayerMoneyEx(playerid);
public GetPlayerMoneyEx(playerid)
{
    return ServerSideCash[playerid];
}

forward OnPlayerHaveExtraCash(playerid,extraamount);

#define GetPlayerMoney GetPlayerMoneyEx
#define GivePlayerMoney GivePlayerMoneyEx
#define ResetPlayerMoney ResetPlayerMoneyEx

#define OnGameModeInit GMInit
#define OnGameModeExit GMExit