Speedo meter shows bank account
#1

When someone drive faster than 100 kmh the speedo meter starts to show the bank account insted? im not sure but the problem should be here, if not then tell me where to look please.

pawn Код:
new kmh = GetPlayerSpeed(i, true);
                if ((BusrouteEast[i][0] >= 0 && BusrouteWest[i][0] >= 0))
                {
                    if(PlayerInfo[i][pSpeedo] == 2)
                    {
                        if(kmh >= 0 && kmh <= 80)
                        {
                            format(string, 64, "~w~Speed: ~g~~h~%d ~w~KM/h.", kmh);
                        }
                        else if(kmh >= 81 && kmh <= 120)
                        {
                            format(string, 64, "~w~Speed: ~y~~h~%d ~w~KM/h.", kmh);
                        }
                        else if(kmh >= 300)
                        {
                            format(string, 64, "~w~Speed: ~r~~h~%d ~w~KM/h.", kmh);
                        }
                        TextDrawSetString(Textdraw39[i], string);
                    }
Reply
#2

You maybe have messed up the Textdraw id with the bank textdraw,.
Reply
#3

But it only shows when you drive over 100, if it was the id shouldnt it show bank even under 100?
Reply
#4

Fact is: the code presented is in no way related to the number 100 except for that it fits in the 2nd statement's range and could be one of the values displayed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)