[Ajuda] Erro pwn
#1

(66133) : error 017: undefined symbol "Sono"
(66133) : warning 215: expression has no effect
(66133) : error 001: expected token: ";", but found "]"
(66133) : error 029: invalid expression, assumed zero
(66133) : fatal error 107: too many error messages on one line

LINHA : 66133
Код:
SetProgressBarValue(Sono[i], dini_Int(gFile[i],"Dorme")), UpdateProgressBar(Sono[i], i);
Reply
#2

Vocк nгo definiu a variбvel "Sono"
Reply
#3

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Vocк nгo definiu a variбvel "Sono"
Pronto! Corrigido. tenho outra duvida. Posto aqui ou crio outro post?
Reply
#4

Aproveite este tуpico mesmo.
Reply
#5

No topo do seu script:
pawn Код:
new Bar: Sono[MAX_PLAYERS];
Referencia pelo tуpico oficial:
Quote:
Originally Posted by Toribio
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <progress>

new Bar:vhealth[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
forward ProgressBar();

public OnFilterScriptInit()
{
    SetTimer("ProgressBar", 500, 1);
    return 1;
}

public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
    {
        new vehicleid;
        if((vehicleid = GetPlayerVehicleID(playerid)) && vhealth[playerid] != INVALID_BAR_ID)
        {
            new Float:health;
            GetVehicleHealth(vehicleid, health);
            SetProgressBarValue(vhealth[playerid], health);
            UpdateProgressBar(vhealth[playerid], playerid);
        }
    }
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_DRIVER)
    {
        DestroyProgressBar(vhealth[playerid]);
        vhealth[playerid] = INVALID_BAR_ID;
    }
    if(newstate == PLAYER_STATE_DRIVER)
    {
        vhealth[playerid] = CreateProgressBar(548.5, 36.0, _, _, 0x00FF00FF, 1000.0);
        ShowProgressBarForPlayer(playerid, vhealth[playerid]);
    }
    return 1;
}
#Edit
Acho que jб respondera essa.
Reply
#6

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Vocк nгo definiu a variбvel "Sono"
Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Aproveite este tуpico mesmo.
(143 : error 010: invalid function or declaration
Код:
Text:Velocimetro1[MAX_PLAYERS];
(4595) : error 017: undefined symbol "Velocimetro1"
(4595) : error 001: expected token: ";", but found "]"
(4595) : error 029: invalid expression, assumed zero
(4595) : fatal error 107: too many error messages on one line
Код:
Velocimetro1[i] = TextDrawCreate(190.000000, 375.000000, "KM/H");
Reply
#7

Altere:
Код:
Text:Velocimetro1[MAX_PLAYERS];
para:
Код:
new Text:Velocimetro1[MAX_PLAYERS];
Reply
#8

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Altere:
Код:
Text:Velocimetro1[MAX_PLAYERS];
para:
Код:
new Text:Velocimetro1[MAX_PLAYERS];
Nгo querendo abusar da sua bondade vocк tem skype?
Tenho mais umas duvidas se puder perguntar diretamente pra vocк
Reply
#9

Quote:
Originally Posted by dannreis
Посмотреть сообщение
Nгo querendo abusar da sua bondade vocк tem skype?
Tenho mais umas duvidas se puder perguntar diretamente pra vocк
Manda PM, estarei а disposiзгo.
Reply
#10

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Manda PM, estarei а disposiзгo.
Mandei 1 agora ! Obrigado atй aqui. As duvidas agora vou perguntar no PM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)