2 questions
#9

Have to say this:

pawn Код:
for(new i =0; i < MAX_VEHICLES; i++)
That loops through ALL vehicles...

Why not use foreach?

pawn Код:
foreach(Player, pid)
{
    switch(GetPlayerState(pid))
    {
        case PLAYER_STATE_DRIVER
        {
             new vid = GetPlayerVehicleID(pid);
             //lower the fuel...
        }
    }
}
If you want to round stuff, use floatround
Reply


Messages In This Thread
2 questions - by Sime30 - 27.01.2015, 18:17
Re: 2 questions - by Sid_Alexander - 27.01.2015, 18:21
Re: 2 questions - by Sime30 - 27.01.2015, 18:23
Re: 2 questions - by Sime30 - 27.01.2015, 22:01
Re: 2 questions - by Jefff - 27.01.2015, 22:16
Re: 2 questions - by Sime30 - 27.01.2015, 22:22
Re: 2 questions - by Jefff - 27.01.2015, 22:23
Re: 2 questions - by Sime30 - 27.01.2015, 22:26
Re: 2 questions - by DobbysGamertag - 27.01.2015, 22:38
Re: 2 questions - by Jefff - 27.01.2015, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)