02.01.2015, 18:03
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:
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.
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;
}
Game ID: 198 | Temp ID: 198
Game ID: 199 | Temp ID: 199
but if I spawn the 200th vehicle, the message fails to show.

