[Solved] error 033: array must be indexed
#6

Still the same error..

This is the cars that is for sale ordered in an array
pawn Код:
cars[3][] =
    {

        {404},
        {451},
        {541}
};
Here its gonna check if the car is id 404, 451 or 541..
pawn Код:
for(new i; i < sizeof(cars); i++)
            {

                if(GetVehicleModel(carid2) == cars[i]) // The error line
                {
                    SendClientMessage(playerid, COLOR_YELLOW, "This car costs $10000, type /buycarconfirm to buy it.");
                    car = 1;
                }

            }
Reply


Messages In This Thread
[Solved] error 033: array must be indexed - by hanzen - 11.04.2009, 00:33
Re: error 033: array must be indexed - by ICECOLDKILLAK8 - 11.04.2009, 00:34
Re: error 033: array must be indexed - by hanzen - 11.04.2009, 00:34
Re: error 033: array must be indexed - by ICECOLDKILLAK8 - 11.04.2009, 00:35
Re: error 033: array must be indexed - by hanzen - 11.04.2009, 00:36
Re: error 033: array must be indexed - by hanzen - 11.04.2009, 00:39
Re: error 033: array must be indexed - by hanzen - 11.04.2009, 01:04
Re: error 033: array must be indexed - by Nubotron - 11.04.2009, 01:04
Re: error 033: array must be indexed - by hanzen - 11.04.2009, 01:07

Forum Jump:


Users browsing this thread: 1 Guest(s)