Is vehicle valid.
#5

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
INVALID_VEHICLE_ID is defined in the samp include.
pawn Код:
stock IsVehicleValid(vehicleid)
{
    if(vehicleid != INVALID_VEHICLE_ID) return 1;
    else return 0;
}
Have you tested that code? Do you think it would return 0 if I had 0 vehicles in my server and I did this:

pawn Код:
printf("Return value: %i", IsVehicleValid(5));
Test it out with a vehicle ID that isn't valid and tell me if it works.

In the meantime, a good answer that works was provided by Yuryfury.
Reply


Messages In This Thread
Is vehicle valid. - by CoaPsyFactor - 01.07.2012, 04:56
Re: Is vehicle valid. - by Beginerinprogress - 01.07.2012, 05:02
Re: Is vehicle valid. - by Yuryfury - 01.07.2012, 05:10
Re: Is vehicle valid. - by ReneG - 01.07.2012, 05:12
Re: Is vehicle valid. - by JaTochNietDan - 01.07.2012, 05:24
Re: Is vehicle valid. - by pasha97 - 01.07.2012, 05:41
Re: Is vehicle valid. - by CoaPsyFactor - 01.07.2012, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)