SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 26/03/2010, 11:06 AM   #1
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Hello, i am encountering a problem with a semi-fuel system which i can't figure out why it's not working!

When i get in a car the box appears, but the texts not appearing.. i really need help!

pawn Code:
public CheckStatus()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInAnyVehicle(i))
            {
                if(TextShow[i] == false)
                {
                  TextDrawShowForPlayer(i, Text:Black0);
                  TextDrawShowForPlayer(i, Text:Black1);
                  TextDrawShowForPlayer(i, Text:Black2);
                  TextDrawShowForPlayer(i, Text:Black3);
                  TextDrawShowForPlayer(i, Text:LightBlack);
                  TextShow[i] = true;
                }
              new String[128];
            new Float:X, Float:Y, Float:Z, Float:Speed;
            new vehicle = GetPlayerVehicleID(i);
        GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
        Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 100.0);
                format(String,sizeof(String),"~b~ D-Board~n~~r~Fuel: ~w~%i~n~~r~km/h: ~w~%i", Gas[vehicle], floatround(Speed, floatround_floor));
                if(VHSCreated[i] == true)
                {
                    TextDrawDestroy(VHS[i]);
                }
                VHS[i] = TextDrawCreate(541.000000,137.000000,String);
                TextDrawAlignment(VHS[i],0);
                TextDrawBackgroundColor(VHS[i],0x000000ff);
                TextDrawFont(VHS[i],1);
                TextDrawLetterSize(VHS[i],0.299999,1.000000);
                TextDrawColor(VHS[i],0xffffffff);
                TextDrawSetOutline(VHS[i],1);
                TextDrawSetProportional(VHS[i],1);
                TextDrawSetShadow(VHS[i],1);
        TextDrawShowForPlayer(i, VHS[i]);
        VHSCreated[i] = true;

            }
            else
            {
              if(TextShow[i] == true)
              {
                    TextDrawHideForPlayer(i, Text:Black0);
                    TextDrawHideForPlayer(i, Text:Black1);
                    TextDrawHideForPlayer(i, Text:Black2);
                    TextDrawHideForPlayer(i, Text:Black3);
                    TextDrawHideForPlayer(i, Text:LightBlack);
                    TextDrawHideForPlayer(i, Text:VHS[i]);
                  TextShow[i] = false;
                }
            }
        }
    }
}
Rand_Omar is offline  
Old 26/03/2010, 11:29 AM   #2
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing!

Any solution yet?
Rand_Omar is offline  
Old 26/03/2010, 01:54 PM   #3
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing!

This is unsolved yet and no one answered!

It's now in page 2!
Rand_Omar is offline  
Old 26/03/2010, 02:21 PM   #4
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Please, if no one knows an answer, tell me.. i hate waiting.
Rand_Omar is offline  
Old 26/03/2010, 04:39 PM   #5
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

No answer yet?!
Rand_Omar is offline  
Old 26/03/2010, 04:42 PM   #6
KnooL
Huge Clucker
 
Join Date: Jan 2009
Posts: 411
Reputation: 3
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Dude slow down, don't think I will even attempt to fix your problem (if I could) when I see your like bumping 4 times in less then 12 hours
__________________
217.18.70.94:7777
http://mafiacityrpg.com
Quote:
Originally Posted by bajskorv123 View Post
Will returning 0 at OnPlayerDisconnect work?
Just a quick question because im too lazy to test.
Would be nice if you could keep players on server xD
KnooL is offline  
Old 26/03/2010, 04:45 PM   #7
Rand_Omar
Little Clucker
 
Join Date: Jan 2010
Posts: 47
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Quote:
Originally Posted by KnooL
Dude slow down, don't think I will even attempt to fix your problem (if I could) when I see your like bumping 4 times in less then 12 hours
You want me to slow down? waiting 20 minutes in the beginning, and after 1 hour or so, replying because it gone to page 3, then after 2 hours it was in page 4..

And the last one this topic was in page 6, which no one cares to watch other pages but only the first page..

So i had to keep replying to this thread or else it would've been back in the ancient topics!
Rand_Omar is offline  
Old 26/03/2010, 04:49 PM   #8
KnooL
Huge Clucker
 
Join Date: Jan 2009
Posts: 411
Reputation: 3
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

This makes you look very 'important' to other sa-mp members that are posting around here. Other people also want to get a reply on their post. And if you want to stay long on this forum I guess you should read and follow the forum rules.

http://forum.sa-mp.com/index.php?topic=67900.0
Code:
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.
If I were you, start following the rules.

Thank you.
__________________
217.18.70.94:7777
http://mafiacityrpg.com
Quote:
Originally Posted by bajskorv123 View Post
Will returning 0 at OnPlayerDisconnect work?
Just a quick question because im too lazy to test.
Would be nice if you could keep players on server xD
KnooL is offline  
Old 26/03/2010, 05:46 PM   #9
playbox12
High-roller
 
playbox12's Avatar
 
Join Date: Feb 2010
Location: Netherlands
Posts: 1,317
Reputation: 216
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Indeed stop the bump lol, I never realy worked with textdraws so I cant help you
playbox12 is offline  
Old 08/08/2010, 11:27 PM   #10
Xtreme4ever
Big Clucker
 
Xtreme4ever's Avatar
 
Join Date: Mar 2010
Location: Behind You
Posts: 67
Reputation: 0
Default Re: [BUG] The Speed-o-Meter and Fuel-o-Meter is not appearing! [UNSOLVED!!!]

Quote:
Originally Posted by KnooL View Post
This makes you look very 'important' to other sa-mp members that are posting around here. Other people also want to get a reply on their post. And if you want to stay long on this forum I guess you should read and follow the forum rules.

http://forum.sa-mp.com/index.php?topic=67900.0
Code:
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.
If I were you, start following the rules.

Thank you.
yeah, when someone knows the answer to ur question, they'll probably answer it.... or not
Xtreme4ever is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] Fuel Meter tony_fitto Help Archive 1 08/03/2010 03:41 PM
Textdraw similar to Speed-O-Meter Overlay problem :( saiberfun Help Archive 29 11/03/2009 01:34 AM


All times are GMT. The time now is 07:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.