Battery
#6

Quote:
Originally Posted by No Fear
Посмотреть сообщение
pawn Код:
if      ( TVar[ playerid ][ tBattery ] <= 100 ) {   format( Battery, sizeof( Battery ),"|||||");}
        else if ( TVar[ playerid ][ tBattery ] <= 75 )  {   format( Battery, sizeof( Battery ),"||||");}
        else if ( TVar[ playerid ][ tBattery ] <= 50 )  {   format( Battery, sizeof( Battery ),"|||" );}
        else if ( TVar[ playerid ][ tBattery ] <= 25 )  {   format( Battery, sizeof( Battery ),"||" );}
        else if ( TVar[ playerid ][ tBattery ] <= 0 )   {   format( Battery, sizeof( Battery ),"|" );}
whats wrong it's showing 5 bars, even if i have 0 battery
pawn Код:
switch(Tvar[playerid][tBattery])
{
    case 100: format(Battery, sizeof(Battery),"|||||");
    case 75..99: format(Battery, sizeof(Battery),"||||");
    case 50..74: format(Battery, sizeof(Battery),"|||");
    case 25..49: format(Battery, sizeof(Battery),"||");
    case 0..24: format(Battery, sizeof(Battery),"|");
}
Could try that out
Reply


Messages In This Thread
Battery - by No Fear - 29.12.2011, 08:26
Re: Battery - by Seven_of_Nine - 29.12.2011, 08:30
Re: Battery - by No Fear - 29.12.2011, 08:32
Re: Battery - by Seven_of_Nine - 29.12.2011, 08:34
Re: Battery - by No Fear - 29.12.2011, 08:35
Re: Battery - by [ABK]Antonio - 29.12.2011, 08:40
Re: Battery - by Seven_of_Nine - 29.12.2011, 08:42
Re: Battery - by No Fear - 29.12.2011, 08:49
Re : Battery - by decondelite - 29.12.2011, 09:26

Forum Jump:


Users browsing this thread: 1 Guest(s)