13.11.2010, 19:27
Quote:
Thanks, only if someone could have helped me with that last night :P
Does this check if its the full match, or just part? so if the input was 560 would it find the string "560 - sultan" |
pawn Код:
for(id = 0; id < 211; id++) //Does a loop to check the veh models.
{
if ( !strcmp ( vehicleNames [ id ], params ) ) //If it matches with a vehicle.
{
//...
}
}
You could use break to get out of a loop when you find a vehicle and be able to retrieve the id.