25.01.2015, 02:04
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.
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;
}