OnPlayerStateChange, locking vehicles
#4

Another interesting way to do a comparison to multiple values is this:
PHP код:
static const valid_vehid = (1<<596) | (1<<597) | (1<<598) | (1<<599) | (1<<523);//makes bit mask of valid ids
//and do 
if((1<<vehicleID)&valid_vehid )
{
//true
}
else
{
//not

Reply


Messages In This Thread
OnPlayerStateChange, locking vehicles - by ross8839 - 10.06.2017, 13:44
Re: OnPlayerStateChange, locking vehicles - by Vince - 10.06.2017, 14:04
Re: OnPlayerStateChange, locking vehicles - by ross8839 - 10.06.2017, 14:07
Re: OnPlayerStateChange, locking vehicles - by SyS - 10.06.2017, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)