Errori [foreach]

Započeo mikec_shot, Oktobar 10, 2012, 13:53:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: gtarp
Detaljan opis problema: Kada compileujem izbacuje sledece, iako imam include foreach..:
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 017: undefined symbol "foreach"
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 029: invalid expression, assumed zero
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 017: undefined symbol "i"
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : 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.

Dio skripte:
public SearchingHit(playerid)
{
new string[256];
new giveplayer[MAX_PLAYER_NAME];
new searchhit = 0;
foreach (new i : Player)
{
if(searchhit == 0)
{
  if(PI[i][pHeadValue] > 0 && GotHit[i] == 0 && PI[i][pMember] != 8)
  {
        GetPlayerName(i, giveplayer, sizeof(giveplayer));
        searchhit = 1;
        hitfound = 1;
        hitid = i;
foreach (Player, k)
{
        if(PI[k][pMember] == 8 || PI[k][pLeader] == 8)
        {
                SendClientMessage(k, BELA, "|______________________ Novosti Hitman Agencije _______________________|");
            SendClientMessage(k, COLOR_DBLUE, "*** Nova poruka: Nova meta je dostupna. ***");
            format(string, sizeof(string), "Osoba: %s   ID: %d   Vrednost: $%d", giveplayer, i, PI[i][pHeadValue]);
SendClientMessage(k, COLOR_DBLUE, string);
SendClientMessage(k, COLOR_YELLOWW, "Koristite givehit id, da biste dodelili metu jednome od vasih hitmana.");
SendClientMessage(k, BELA, "|______________________________________________________________________|");
      }
}
return 0;
    }
}
}
if(searchhit == 0)
{
    SendClientMessage(playerid, COLOR_GREY, "   Nema dostupnih meta !");
}
return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Uspeo, hvala. E sad imam problem sa lisicama nesto.
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(72594) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(78853) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"

Evo ih te dve linije:
72594: SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
78853: if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);