07.03.2013, 00:39
@Jefff, that doesn't work, I get messages like "Hydra is not a valid vehicle name" If I'm not mistaken, wont the code...
Always return INVALID_VEHICLE_ID no matter what?
pawn Код:
//gets vname from id
FindVehicleByNameID(const vname[])
{
for(new i,LEN = strlen(vname); i != sizeof(VehicleNames); i++)
if(!strcmp(VehicleNames[i],vname,true,LEN))
return i + 400;
return INVALID_VEHICLE_ID;
}