Erro pwn -
dannreis - 02.06.2016
(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);
Re: Erro pwn -
F1N4L - 02.06.2016
Vocк nгo definiu a variбvel "Sono"
Re: Erro pwn -
dannreis - 02.06.2016
Quote:
Originally Posted by F1N4L
Vocк nгo definiu a variбvel "Sono"
|
Pronto! Corrigido. tenho outra duvida. Posto aqui ou crio outro post?
Re: Erro pwn -
F1N4L - 02.06.2016
Aproveite este tуpico mesmo.
Re: Erro pwn -
zSuYaNw - 02.06.2016
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.
Re: Erro pwn -
dannreis - 02.06.2016
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");
Re: Erro pwn -
F1N4L - 02.06.2016
Altere:
Код:
Text:Velocimetro1[MAX_PLAYERS];
para:
Код:
new Text:Velocimetro1[MAX_PLAYERS];
Re: Erro pwn -
dannreis - 02.06.2016
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к
Re: Erro pwn -
F1N4L - 02.06.2016
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.
Re: Erro pwn -
dannreis - 02.06.2016
Quote:
Originally Posted by F1N4L
Manda PM, estarei а disposiзгo.
|
Mandei 1 agora ! Obrigado atй aqui. As duvidas agora vou perguntar no PM