as start the car?
#3

Look at your code, very poorly established.

Why isn't there any id's connection check. It will probabily slow down the speed.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
       if(IsPlayerConnected(i))
       {
       }
}
Just a tip, you can do
pawn Код:
fuel[vid] -= 1;
to reduce the value by any amount.

After the fuel limit is smaller than 1 (< 1), why havent you set isrefuelling[i] to false? This can cause problem.
pawn Код:
isrefuelling[i] = false;
Just use this to stop the engine when the vehicle start refueling.
pawn Код:
SetVehicleParamsEx(vid, 0, 0, 0, 0, 0, 0, 0);
Refer to the link provided by CalvinC.

The string size, I think 18 is enough.
pawn Код:
new string[18];
For future, use foreach for making loops life easy. And please use PlayerTextDraws for these kind of purposes.
Reply


Messages In This Thread
as start the car? - by StarPeens - 13.03.2015, 03:36
Re: as start the car? - by CalvinC - 13.03.2015, 05:52
Re: as start the car? - by Gammix - 13.03.2015, 06:22

Forum Jump:


Users browsing this thread: 1 Guest(s)