03.12.2010, 15:35
I made this stock
This is suppose to return the car name into this
It displayers the int carkey1 but the vehnam is not showing the name of the vehicle
What i did wrong in this code?
pawn Код:
stock VehicleNameID(vehicleid)
{
new carname[50];
if(GetVehicleModel(vehicleid) == 560) { carname = "landstalker"; }
return vehicleid;
}
pawn Код:
new vehname = VehicleNameID(carkey1);
pawn Код:
format(string, sizeof(string), " 1є : (%s) | KEY: (%d)",vehname,carkey1);
What i did wrong in this code?