[Ajuda] Include ProgressBar
#1

PHP код:
stock SetProgressBarValue(Bar:baridFloat: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 217loose indentation
C
:\Users\Usuario\Desktop\Nova pasta\pawno\include\progress.inc(176) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings

Reply
#2

Erro apenas de tabulaзгo.

Sugiro que da prуxima pesquise o erro antes de publicar.
Reply
#3

PHP код:
stock SetProgressBarValue(Bar:baridFloat: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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)