SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 27/02/2012, 02:08 PM   #51
Gooday
Gangsta
 
Gooday's Avatar
 
Join Date: Nov 2011
Location: Fort Carson
Posts: 535
Reputation: 40
Default Re: How to make an basic Fuel system

Sorry for revive old topic but:

When i enter a car the fuel shows "Fuel: 0" when i refuel it shows 100 but i cant consume the gas! it is always 100 :/
Gooday is offline   Reply With Quote
Old 07/07/2012, 02:30 PM   #52
RoXONPL
Little Clucker
 
Join Date: Jul 2012
Posts: 17
Reputation: 0
Default Re: How to make an basic Fuel system

can some one tell me how can i add that fuel textdraw as a textlabel that is atached to a vechicle?
plss tell me
RoXONPL is offline   Reply With Quote
Old 07/07/2012, 03:10 PM   #53
zombieking
Huge Clucker
 
Join Date: Jun 2011
Posts: 441
Reputation: 25
Default Re: How to make an basic Fuel system

Nice tutorial , 10/10 but the title:
Code:
an basic
I think that should be "a basic".

Maybe I'm wrong , English isn't my native language.

Some suggestions:

pawn Code:
fuel[vid] = fuel[vid] -1;
can be
pawn Code:
fuel[vid]--;

Second , you can set the vehicle fuel to 100 when the car spawns , at OnVehicleSpawn:
pawn Code:
public OnVehicleSpawn(vehicleid)
{
fuel[vehicleid] = 100;
    return 1;
}
zombieking is offline   Reply With Quote
Old 07/07/2012, 03:56 PM   #54
Igi_Guduric
Big Clucker
 
Igi_Guduric's Avatar
 
Join Date: Jul 2012
Posts: 106
Reputation: 10
Default Re: How to make an basic Fuel system

Good job man.

Nice Tutorial.


Igi_Guduric is offline   Reply With Quote
Old 07/07/2012, 04:00 PM   #55
leonardo1434
High-roller
 
leonardo1434's Avatar
 
Join Date: Mar 2012
Posts: 1,688
Reputation: 179
Default Re: How to make an basic Fuel system

@ZombieKing, really i don't believe you did that. Take a look at date that this thread have been posted. -.-
__________________
c++
leonardo1434 is offline   Reply With Quote
Old 15/07/2012, 05:20 PM   #56
Coder_
Big Clucker
 
Join Date: Jul 2012
Posts: 73
Reputation: 1
Default Re: How to make an basic Fuel system

This is good tutorial for noobs
Thank you!!
Coder_ is offline   Reply With Quote
Old 16/07/2012, 12:14 AM   #57
Coder_
Big Clucker
 
Join Date: Jul 2012
Posts: 73
Reputation: 1
Default Re: How to make an basic Fuel system

What is wrong? i try /refuel and server unknow command
Coder_ is offline   Reply With Quote
Old 21/07/2012, 11:42 PM   #58
Coder_
Big Clucker
 
Join Date: Jul 2012
Posts: 73
Reputation: 1
Default Re: How to make an basic Fuel system

Why Server unknow command when i try /refuel
Coder_ is offline   Reply With Quote
Old 07/08/2012, 07:32 PM   #59
Michael_Cuellar
Big Clucker
 
Michael_Cuellar's Avatar
 
Join Date: Apr 2012
Location: Bullhead City Arizona
Posts: 128
Reputation: 5
Default Re: How to make an basic Fuel system

I did everything and it compiled but its not showing me how much fuel i have?
Michael_Cuellar is offline   Reply With Quote
Old 07/08/2012, 08:32 PM   #60
Coder_
Big Clucker
 
Join Date: Jul 2012
Posts: 73
Reputation: 1
Default Re: How to make an basic Fuel system

Quote:
Originally Posted by Michael_Cuellar View Post
I did everything and it compiled but its not showing me how much fuel i have?
It is random samp bug..
Coder_ is offline   Reply With Quote
Reply

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
[FilterScript] [FS]Basic Fuel System! -BETA- [NYRP]Mike. Filterscripts 23 20/04/2011 04:20 PM
[FilterScript] [FS]Basic Fuel & Engine System! Don_Corello Filterscripts 30 12/12/2010 08:03 PM
fuel system Kar Help Archive 4 30/05/2010 04:01 AM
[FilterScript] [FS]Basic Fuel Filterscript Pixels^ Filterscripts 21 08/04/2010 10:00 AM
How to make basic commands HB Help Archive 16 07/02/2010 09:00 PM


All times are GMT. The time now is 11:27 AM.


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