Need help with stock and car restriction.
#5

I'm not sure if this is the cause of the problem, but you're doing 10 loops while you only have 3 miner-cars.
So the script will checking slots that do not exist. So max the amount of loops to the size of the array and do the same with the loops in the other stocks.

pawn Код:
stock IsMinerVehicle(vehicleid)
{
    for(new i=0; i<sizeof(MinerCar); i++)
    {
        if(vehicleid == MinerCar[i]) return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Need help with stock and car restriction. - by scout322 - 25.01.2015, 00:27
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 01:02
Re: Need help with stock and car restriction. - by vassilis - 25.01.2015, 01:12
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 01:27
Re: Need help with stock and car restriction. - by Schneider - 25.01.2015, 02:04
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 08:41
Re: Need help with stock and car restriction. - by Rabea - 25.01.2015, 09:01
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 09:07
Re: Need help with stock and car restriction. - by Rabea - 25.01.2015, 09:16
Re: Need help with stock and car restriction. - by Vince - 25.01.2015, 11:53

Forum Jump:


Users browsing this thread: 3 Guest(s)