Код:
F:\FGRP\gamemodes\MR.pwn(8688) : warning 217: loose indentation
F:\FGRP\gamemodes\MR.pwn(8705) : error 017: undefined symbol "foreach"
F:\FGRP\gamemodes\MR.pwn(8705) : error 029: invalid expression, assumed zero
F:\FGRP\gamemodes\MR.pwn(8705) : error 017: undefined symbol "x"
F:\FGRP\gamemodes\MR.pwn(8705) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
for(new i = 1; i < MAX_BUSINESS; i++) {
if (IsPlayerInRangeOfPoint(playerid, 3.0,BizInfo[i][bX], BizInfo[i][bY], BizInfo[i][bZ])) {
if(BizInfo[i][bStatus] == 0) {
format(string, sizeof(string), "* %s has entered %s.", GetPlayerNameEx(playerid), BizInfo[i][bOwner]);
ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Streamer_UpdateEx(playerid, BizInfo[i][bInteriorX], BizInfo[i][bInteriorY], BizInfo[i][bInteriorZ]);
SetPlayerInterior(playerid, BizInfo[i][bBInteriorWorld]);
SetPlayerPos(playerid, BizInfo[i][bInteriorX], BizInfo[i][bInteriorY], BizInfo[i][bInteriorZ]);
SetPlayerFacingAngle(playerid, BizInfo[i][bInteriorA]);
SetCameraBehindPlayer(playerid);
format(string, sizeof(string), "[%s] {FFFFFF}", BizInfo[i][bOwner], BizInfo[i]);
SendClientMessage(playerid, COLOR_YELLOW, string);
PlayerInfo[playerid][InBusiness] = i;
SetPlayerVirtualWorld(playerid, i+5000);
PlayerInfo[playerid][pVW] = i+5000;
PlayerInfo[playerid][pInt] = BizInfo[i][bBInteriorWorld];
foreach(new x : Playerid) {
if(IsABoomboxNearby(BizInfo[i][bInteriorX], BizInfo[i][bInteriorY], BizInfo[i][bInteriorZ], x) < 150.0 && (i+5000) == BoomboxInfo[x][bbVW] && BizInfo[i][bInterior_Int] == BoomboxInfo[x][bbInt]) {
PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
}
}
} else GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
}
}