Error /fvr compile
#1

Hello everyone!

When i compile this command result this error
"error 032: array index out of bounds". Problem it's SAPDVehicles

What can i do ?

This is script
pawn Код:
new SAPDVehicles[20];




zcmd(fvr, playerid, params[])
{
    if(!IsPlayerConnectedEx(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, NoConectado);
    {
        {
            if(Info[playerid][pLeader] > 0)
            {
                switch(Info[playerid][pLeader])
                {
                     case 1:
                    {
                        {
                            new bool:unwanted[MAX_VEHICLES];
                            foreach(Player, player)
                            {
                                if(IsPlayerInAnyVehicle(player))
                                {
                                    unwanted[GetPlayerVehicleID(player)]=true;
                                }
                            }
                            for(new car = SAPDVehicles[0]; car <= SAPDVehicles[52]; car++)
                            {
                                if(!unwanted[car]) SetVehicleToRespawn(car);
                            }
                        }

        }
                SendFamilyMessage(Info[playerid][pMember], 0xFE6C01FF, " All cars unused has been respawned by {FFFFFF}Leader");
            }
            else return SendClientMessageEx(playerid, COLOR_GREY, "You're not Leader!");
        }
    }
    return 1;
}
Please help me, thanks.
Reply


Messages In This Thread
error 032: array index out of bounds" - by Johnny_Ionut - 21.06.2016, 15:53
Re: Error /fvr compile - by ATGOggy - 21.06.2016, 15:57
Re: Error /fvr compile - by Konstantinos - 21.06.2016, 16:03
Respuesta: Error /fvr compile - by Johnny_Ionut - 21.06.2016, 19:30
Re: Error /fvr compile - by F1N4L - 21.06.2016, 19:34
Re: Error /fvr compile - by Dayrion - 21.06.2016, 19:35
Respuesta: Re: Error /fvr compile - by Johnny_Ionut - 21.06.2016, 20:13

Forum Jump:


Users browsing this thread: 2 Guest(s)