[Weired]STRFIND a bit bugged
#8

Quote:
Originally Posted by Hal
Посмотреть сообщение
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"
It only does full match checks, I would just recommend you to remove those numbers and '-' infront of the vehicle names and do something like that.

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.
Reply


Messages In This Thread
[Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 07:15
Re: [Weired]STRFIND a bit bugged - by iggy1 - 13.11.2010, 08:56
Re: [Weired]STRFIND a bit bugged - by Retardedwolf - 13.11.2010, 09:01
Re: [Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 09:26
Re: [Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 09:46
Re: [Weired]STRFIND a bit bugged - by Hal - 13.11.2010, 13:22
Re: [Weired]STRFIND a bit bugged - by iggy1 - 13.11.2010, 14:00
Re: [Weired]STRFIND a bit bugged - by Retardedwolf - 13.11.2010, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)