Max Vehicles 200?
#4

Isn't it weird that it stops at ID 200? I mean, I could still spawn a temporary vehicle but then ID 200 couldn't be manipulated anymore. I tried to do this:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(IsPlayerConnected(playerid))
    {
        if(newstate == PLAYER_STATE_DRIVER)
        {
            if(Player[playerid][AdminLevel] >= 3)
            {
                new vehicle = GetPlayerVehicleID(playerid);
                new engine, lights, alarm, doors, hood, trunk, objective;
               
                if(TempVehicles[vehicle] != INVALID_VEHICLE_ID)
                {
                    GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, hood, trunk, objective);
                    SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_ON, lights, alarm, doors, hood, trunk, objective);
                   
                    new string[64];
                    format(string, sizeof(string), "Game ID: %d | Temp ID: %d", vehicle, TempVehicles[vehicle]);
                    SendClientMessage(playerid, 0xFFFFFFFF, string);
                }
            }
        }
    }
    return 1;
}
If it's under ID 200 it shows:
Game ID: 198 | Temp ID: 198
Game ID: 199 | Temp ID: 199

but if I spawn the 200th vehicle, the message fails to show.
Reply


Messages In This Thread
Max Vehicles 200? - by Alvord - 02.01.2015, 16:37
Re: Max Vehicles 200? - by HazardouS - 02.01.2015, 17:22
Re: Max Vehicles 200? - by Alvord - 02.01.2015, 17:29
Re: Max Vehicles 200? - by Alvord - 02.01.2015, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)