SA-MP Forums Archive
[Ajuda] Warning no sistema - 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] Warning no sistema (/showthread.php?tid=583671)



Warning no sistema - zGuigui2068 - 30.07.2015

Ta dando o seguinte erros

pawn Код:
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60398) : error 055: start of function body without function header
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60400) : error 021: symbol already defined: "SetProgressBarValue"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60400) : error 017: undefined symbol "playerid"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60400) : error 021: symbol already defined: "UpdateProgressBar"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60400 -- 60401) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Nessas linhas nгo sei oque й :/

pawn Код:
public Fome(playerid);
{
    SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+5);
    SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome")); // Aqui a linha 60400
    UpdateProgressBar(FomeA,playerid);
    if(GetPVarInt(playerid,"Fome") >= 95)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-90.0);
        SendClientMessage(playerid,-1,"{AA3333}Vai Comer Um Lanche Ou Morrera.");
    }
    return 1;
}
pawn Код:
public Fome(playerid);
{
    SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+5);
    SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
    UpdateProgressBar(FomeA,playerid);
    if(GetPVarInt(playerid,"Fome") >= 95)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-90.0);
        SendClientMessage(playerid,-1,"{AA3333}Vai Comer Um Lanche Ou Morrera.");
    }
    return 1;
}
public Sede(playerid);
{
    SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
    SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
    UpdateProgressBar(SedeB,playerid);
    if(GetPVarInt(playerid,"Sede") >= 95)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-90.0);
        SendClientMessage(playerid,-1,"{AA3333}Vai Beber Uma Agua Ou Morrera.");
    }
    return 1;
}
й um sistema de fome e sede que encontrei e to tentando passar para minha gm :/ mas deu erro nas publics


Re: Warning no sistema - IgorLuiz - 30.07.2015

Talvez precise desta include


Re: Warning no sistema - zGuigui2068 - 30.07.2015

Quote:
Originally Posted by IgorLuiz
Посмотреть сообщение
Talvez precise desta include
pawn Код:
#include  <       progress        >

ja tenho ela :/

#define FomeTempo 1 // Tempo Da Fome Ex : 1 Minuto
#define SedeTempo 1 // Tempo Da Sede Ex : 1 Minuto
#define Positivo    0xFFFF00FF
#define Negativo    0xAA3333AA

oque da erro й na public mesmo.


C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60400) : error 055: start of function body without function header
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60402) : error 021: symbol already defined: "SetProgressBarValue"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60402) : error 017: undefined symbol "playerid"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60402) : error 021: symbol already defined: "UpdateProgressBar"
C:\Users\gustavo copello\Desktop\BSR ant\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60402 -- 60403) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Tinha esquecid da Forward kkk ai reduziu os warnings como pode ver assima... mas agora eu n sei uqe й mesm


Re: Warning no sistema - iTakelot - 30.07.2015

o pawn diz symbol already defined ou Sнmbolo jб definido ou seja vocк jб tem uma stock \ callbeck definida como "UpdateProgressBar" .


Re: Warning no sistema - zGuigui2068 - 30.07.2015

n tenho na gm onde tem isso ?