17.01.2014, 18:04
pawn Код:
stock GetNearestBusiness(playerid, type)
{
new
iBusinessID = -1,
Float: fDistance,
Float: fShortest_Distance = 5000.0;
for(new i = 0; i < MAX_BUSINESSES; i ++) {
if(BusinessInfo[i][bType] == type && BusinessInfo[i][bLockStatus] == 0) { //THIS LINE
if(BusinessInfo[i][bExterior_VW] == 0 && BusinessInfo[i][bExterior_Int] == 0)
{
fDistance = GetPlayerDistanceFromPoint(playerid, BusinessInfo[i][bExterior_X], BusinessInfo[i][bExterior_Y], BusinessInfo[i][bExterior_Z]);
if(fDistance < fShortest_Distance)
{
iBusinessID = i;
fShortest_Distance = fDistance;
}
}
}
}
return iBusinessID;
}
PHP код:
C:\Ma Stuff is Here\FUCKU\gamemodes\BACKUP.pwn(1089) : error 017: undefined symbol "BusinessInfo"
C:\Ma Stuff is Here\FUCKU\gamemodes\BACKUP.pwn(1089) : warning 215: expression has no effect
C:\Ma Stuff is Here\FUCKU\gamemodes\BACKUP.pwn(1089) : error 001: expected token: ";", but found "]"
C:\Ma Stuff is Here\FUCKU\gamemodes\BACKUP.pwn(1089) : error 029: invalid expression, assumed zero
C:\Ma Stuff is Here\FUCKU\gamemodes\BACKUP.pwn(1089) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.