Fuel , /veh
#1

Hi guys!

I made a fuel system , but it's not working for vehicles spawned with commands, only works for vehicles added on Init.

pawn Код:
forward FuelAndSync();
public FuelAndSync()
{
    for(new i = 0; i < MAX_VEHICLES;i++) // I believe it's this thing here.
    {
        if(GetVehicleModel(i))
        {
Regards!
Reply
#2

I know why:
Becuase, you made a loop for all vehicles that you made but the vehicles thst made by commands is not in the MAX_VEHILCES.
But i don't know how
Hope you will understand
Reply
#3

Yep, I thought that too... Waitin' for some more answers...
Reply
#4

Код:
forward FuelAndSync();
public FuelAndSync()
{
    for(new i=0;i<MAX_VEHICLES;i++) {
        fuel[i] = 100;
Evo nadam se da radi I hope it works
Reply
#5

Quote:
Originally Posted by GreenSt4lker
Посмотреть сообщение
Код:
forward FuelAndSync();
public FuelAndSync()
{
    for(new i=0;i<MAX_VEHICLES;i++) {
        fuel[i] = 100;
Evo nadam se da radi I hope it works
Koji k haha. Ma gorivo se dodjeljuje drukcije, nije u tome stvar. Stvar je sto ne trosi gorivo, gorivo se dobro dodaje. Sva naknadno dodana vozila ne trose jer ocito nisu pod MAX_VEHICLES. --- More answers, this isn't what I wanted?
Reply
#6

Ahaaa ja mislio posto si napiso da neardi haha. Aj poslat cu ti u PM jedan fuel system pa uzmi sa njega.
Reply
#7

Still need help guys
Reply
#8

Bump
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)