29.05.2009, 12:48
pawn Код:
if (car == vehicle[100])
{
AddVehicleComponent(Vehicle, 1010);
format(string, sizeof(string), "You Are in car number %d", car);
SendClientMessage(playerid,0xFF0000AA,string);
}
%s = Text.
%d = Whole Number.
So when returning a vehicleid, the id is a whole number so you need to use %d.