15.04.2011, 17:57
pawn Код:
foreach(Player, i) {
if (IsPlayerInRangeOfPoint[i], 50, -344.2773, 1545.2611, 75.5625)) return is_in_big_ear_check_point;
if(EnteredArea[i] == 0) { // if he hasn'td beenterefo re
if(gTeam[i] == TEAM_USA && CapturedBy == 1 || gTeam[i] == TEAM_GERMANY && CapturedBy == 2 || gTeam[i] == TEAM_MERC && CapturedBy == 3 || gTeam[i] == TEAM_JAPAN && CapturedBy == 4 || gTeam[i] == TEAM_RUSSIA && CapturedBy == 5) {
SendClientMessage(i, COLOR_RED, "This area has already been captured by your team!");
EnteredArea[i] = 1;
}
else {
SendClientMessageToAll(COLOR_CON_GREEN, "The bigear is being taken over!");
EnteredArea[i] = 1; // He has entered
SendClientMessage(i,COLOR_CON_GREEN, "Stay In here for 30 seconds to take over the area!");
IfCapture[i] = 1;
T1[i] = SetTimer("TakeOver",30000,0);
}
}
}
else {
EnteredArea[i] = 0; // When he leaves, he's no longer in the area
KillTimer(T1[i]);
}
Код:
E:\....\3cinc\gamemodes\COD5.pwn(8205) : error 028: invalid subscript (not an array or too many subscripts): "IsPlayerInRangeOfPoint" E:\.....\3cinc\gamemodes\COD5.pwn(8205) : warning 215: expression has no effect E:\......\3cinc\gamemodes\COD5.pwn(8205) : error 001: expected token: ";", but found "]" E:\.....\3cinc\gamemodes\COD5.pwn(8205) : error 029: invalid expression, assumed zero E:\......./3cinc\gamemodes\COD5.pwn(8205) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if (IsPlayerInRangeOfPoint[i], 50, -344.2773, 1545.2611, 75.5625)) return is_in_big_ear_check_point;
