GetVehicleModel problem?
#1

Hi there.

I'm using this little code to get the vehiclemodel of every car I enter, but after a few cars, the number of the model gets stuck:

Код:
public OnPlayerEnterVehicle(playerid)
{
  new string[128];
  format(string,sizeof(string), "modelo vehiculo: %i", GetVehicleModel(playerid));
  SendClientMessage(playerid, 0x00ff0000, string);
	return 1;
}
This means that if I enter a vehicle with modelid of 401, then 565 and then 601, after a few cars it will always show 601 & I have to re-generate the cars reloading the FS to get it working again. But it happens again and again..

Is this a bug with the command or is something wrong that can be causing this?

Reply


Messages In This Thread
GetVehicleModel problem? - by clavador - 10.10.2009, 21:23
Re: GetVehicleModel problem? - by Correlli - 10.10.2009, 21:25
Re: GetVehicleModel problem? - by clavador - 10.10.2009, 22:13
Re: GetVehicleModel problem? - by Correlli - 11.10.2009, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)