16.03.2013, 14:41
Oke, I thought it was solved after somebody mentioned a closing ')', but it's not.
Code:
My errors:
Tried to change MAX_BIZ as somebody said, but that didn't work.
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);
}
}
Код:
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.