27.01.2015, 22:38
Have to say this:
That loops through ALL vehicles...
Why not use foreach?
If you want to round stuff, use floatround
pawn Код:
for(new i =0; i < MAX_VEHICLES; i++)
Why not use foreach?
pawn Код:
foreach(Player, pid)
{
switch(GetPlayerState(pid))
{
case PLAYER_STATE_DRIVER
{
new vid = GetPlayerVehicleID(pid);
//lower the fuel...
}
}
}