21.01.2011, 00:42
I think that this should solve your problem
So, you can use like that:
I hope that i have helped
pawn Код:
stock GetVehicleNameOfModelFromVehicleID(vehicleid)
{
new modelname[50];
format(modelname, 50, "%s",VehicleNames[GetVehicleModel(vehicleid)])
return modelname;
}
So, you can use like that:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[256];
format(string, sizeof(string), "You are in a %s",GetVehicleNameOfModelFromVehicleID(vehicleid));//It will shows the name of the vehicle model
return 1;
}
I hope that i have helped