SA-MP Forums Archive
Speedo meter shows bank account - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Speedo meter shows bank account (/showthread.php?tid=423129)



Speedo meter shows bank account - Don_Cage - 16.03.2013

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);
                    }



Re: Speedo meter shows bank account - Private200 - 16.03.2013

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


Re: Speedo meter shows bank account - Don_Cage - 16.03.2013

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


Re: Speedo meter shows bank account - AndreT - 16.03.2013

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.