[Ajuda] Include ProgressBar - 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] Include ProgressBar (
/showthread.php?tid=584789)
Include ProgressBar -
JuniorTheDM - 08.08.2015
PHP код:
stock SetProgressBarValue(Bar:barid, Float:value)
{
if(barid == INVALID_BAR_ID || Bar:MAX_BARS < barid < Bar:-1)
return 0;
if(Bars[_:barid][pb_created])
{
value =
(value < 0.0) ? (0.0) : (value > Bars[_:barid][pb_m]) ? (Bars[_:barid][pb_m]) : (value);
TextDrawUseBox(Bars[_:barid][pb_t3], value > 0.0);
//171 Bars[_:barid][pb_v] = value;
TextDrawTextSize(Bars[_:barid][pb_t3],
pb_percent(Bars[_:barid][pb_x], Bars[_:barid][pb_w], Bars[_:barid][pb_m], value), 0.0);
//176return 1;
}
return 0;
}
PHP код:
C:\Users\Usuario\Desktop\Nova pasta\pawno\include\progress.inc(171) : warning 217: loose indentation
C:\Users\Usuario\Desktop\Nova pasta\pawno\include\progress.inc(176) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Re: IncludE pROGESSBAR -
JonathanFeitosa - 08.08.2015
Erro apenas de tabulaзгo.
Sugiro que da prуxima pesquise o erro antes de publicar.
Re: Include ProgressBar -
KamoTo - 08.08.2015
PHP код:
stock SetProgressBarValue(Bar:barid, Float:value)
{
if(barid == INVALID_BAR_ID || Bar:MAX_BARS < barid < Bar:-1)
return 0;
if(Bars[_:barid][pb_created])
{
value =
(value < 0.0) ? (0.0) : (value > Bars[_:barid][pb_m]) ? (Bars[_:barid][pb_m]) : (value);
TextDrawUseBox(Bars[_:barid][pb_t3], value > 0.0);
Bars[_:barid][pb_v] = value;
TextDrawTextSize(Bars[_:barid][pb_t3],
pb_percent(Bars[_:barid][pb_x], Bars[_:barid][pb_w], Bars[_:barid][pb_m], value), 0.0);
return 1;
}
return 0;
}
vocк precisa identar(alinhar) o codigo .
Como identar