Array index out of bound?
#1

Oke, I thought it was solved after somebody mentioned a closing ')', but it's not.

Code:

pawn Код:
for(new biz = 0; biz < MAX_BIZ; biz++) // For entering a business
    {
        if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[biz][XCoord], BizInfo[biz][YCoord], BizInfo[ZCoord]) && PlayerInfo[playerid][pVW] == 0) // ERROR ON THIS LINE
        {
            new string25[150];
            format(string25,sizeof(string25),"Welcome to %s!", BizInfo[biz][Name]);
            SetPlayerVirtualWorld(playerid, BizInfo[biz][VW]);
            PlayerInfo[playerid][pVW] = BizInfo[biz][VW];
            PlayerInfo[playerid][pInt] = BizInfo[biz][VW];
            PlayerInfo[playerid][pLocal] = BizInfo[biz][VW];
            SetPlayerInterior(playerid, BizInfo[biz][Int]);
            SetPlayerPos(playerid, BizInfo[biz][IXCoord], BizInfo[biz][IYCoord], BizInfo[biz][IZCoord]);
            SendClientMessage(playerid, COLOR_LIGHTGREEN, string25);
        }
    }
My errors:

Код:
C:\Program Files\GTA San Andreas (2)\server\FGRP\gamemodes\FGRP - Copy.pwn(36668) : error 032: array index out of bounds (variable "BizInfo")
C:\Program Files\GTA San Andreas (2)\server\FGRP\gamemodes\FGRP - Copy.pwn(89426) : warning 203: symbol is never used: "IsAtAMMU"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Tried to change MAX_BIZ as somebody said, but that didn't work.
Reply


Messages In This Thread
Array index out of bound? - by Da_Noob - 16.03.2013, 14:41
Re: Array index out of bound? - by Tumba - 16.03.2013, 14:43
Re: Array index out of bound? - by [ABK]Antonio - 16.03.2013, 14:46
Re: Array index out of bound? [SOLVED] - by Da_Noob - 16.03.2013, 14:47
Re: Array index out of bound? - by P3DRO - 16.03.2013, 15:44

Forum Jump:


Users browsing this thread: 3 Guest(s)