[FilterScript] [FS] Fuel System ( 100% working *TESTED* )
#6

1.
pawn Код:
#define CAR_AMOUNT 1000
Max cars is 700, why 1000?

2.
pawn Код:
new Text:vehht;
TextDrawDestroy(Text:vehht);
//some if's...
new vhealth[256];
new Float:vehhealth;
GetVehicleHealth(vehid, vehhealth);
format(vhealth, sizeof(vhealth), "~p~Vehicle info ~n~~r~Health:~w~ %.0f~n~~g~Fuel:~w~ %d%",vehhealth,Gas[vehid]);
vehht = TextDrawCreate(500, 415, vhealth);
You're destroying the textdraw, and creating a new every second? Try with TextDrawSetString.

3.
pawn Код:
NoFuel[playerid] = 1;
NoFuel assigned to playerid? IMO vehicleid would be much better.

4.
pawn Код:
if(strcmp(cmdtext, "/exitveh", true) == 0)
    {
    if(NoFuel[playerid] == 1)
    {
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid, 1);
    }
    }
no "NoFuel[playerid] = 0;" ?

5.
Indent your code.


This FS looks alright, good job
Reply


Messages In This Thread
[FS] Fuel System ( 100% working *TESTED* ) - by Milice - 17.11.2008, 01:18
Re: Fuel System - by MenaceX^ - 17.11.2008, 04:33
Re: Fuel System - by Milice - 17.11.2008, 13:24
Re: [FS] Fuel System ( 100% working *TESTED* ) - by Jokel317 - 19.11.2008, 08:26
Re: [FS] Fuel System ( 100% working *TESTED* ) - by Milice - 19.11.2008, 18:49
Re: [FS] Fuel System ( 100% working *TESTED* ) - by pspleo - 19.11.2008, 19:20
Re: [FS] Fuel System ( 100% working *TESTED* ) - by Milice - 19.11.2008, 22:05
Re: [FS] Fuel System ( 100% working *TESTED* ) - by Jokel317 - 20.11.2008, 05:59
Re: [FS] Fuel System ( 100% working *TESTED* ) - by ReFuSeR - 20.11.2008, 07:22
Re: [FS] Fuel System ( 100% working *TESTED* ) - by [ERP]Snow - 20.11.2008, 07:31

Forum Jump:


Users browsing this thread: 2 Guest(s)