Array, vehicle foreach
#2

Your DMVCar array size is 6
and in this
PHP код:
stock IsDMVCar(vehicleid)
{
    for(new 
i=0i<MAX_VEHICLESi++)
    {
        if(
vehicleid == DMVCar[i]) //DMVCar can reach lot more than 6
            
return 1;
    }
    return 
0;

Change it to
PHP код:
stock IsDMVCar(vehicleid)
{
    for(new 
i=0i<6i++)
    {
        if(
vehicleid == DMVCar[i])
            return 
1;
    }
    return 
0;

Reply


Messages In This Thread
Array, vehicle foreach - by izeatfishz - 13.08.2016, 23:04
Re: Array, vehicle foreach - by Shinja - 13.08.2016, 23:12
Re: Array, vehicle foreach - by Vince - 13.08.2016, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)