Textdraw not displayed correctly
#1

Hi everyone, i have a problem with my progress bar. Here is my code:

pawn Код:
if(PlayerInfo[i][CurrentLP]<floatmul(PlayerInfo[i][MaxLP],0.1)){        format(LearnpointBar[i], 50, "~w~IIIIIIIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.1)){  format(LearnpointBar[i], 50, "~y~I~w~IIIIIIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.2)){  format(LearnpointBar[i], 50, "~y~II~w~IIIIIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.3)){  format(LearnpointBar[i], 50, "~y~III~w~IIIIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.4)){  format(LearnpointBar[i], 50, "~y~IIII~w~IIIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.5)){  format(LearnpointBar[i], 50, "~y~IIIII~w~IIIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.6)){  format(LearnpointBar[i], 50, "~y~IIIIII~w~IIII");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.7)){  format(LearnpointBar[i], 50, "~y~IIIIIII~w~III");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.8)){  format(LearnpointBar[i], 50, "~y~IIIIIIII~w~II");}
else if(PlayerInfo[i][CurrentLP]==floatmul(PlayerInfo[i][MaxLP],0.9)){  format(LearnpointBar[i], 50, "~y~IIIIIIIII~w~I");}
else if(PlayerInfo[i][CurrentLP]==PlayerInfo[i][MaxLP]){        format(LearnpointBar[i], 50, "~y~IIIIIIIIII");}
The point is, that every progress line is shown, except for two of the ten multiplications (0.3 and 0.6)... i don't get it what i did wrong there, i tried nearly everything i can think of :/

Here is a picture:



Can u help me? (MaxLP is 50 in my example and CurrentLP is a given number, e.g. 0/50, 10/50 and so on)

Greets,
Macronix


------------
EDIT: I have managed to get this working Can be closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)