[Ajuda] Warning no sistema
#1

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
Reply
#2

Talvez precise desta include
Reply
#3

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
Reply
#4

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

n tenho na gm onde tem isso ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)