foreach?
#1

Hello, so I've this CMD:
pawn Код:
CMD:showcontrats(playerid, params[])
{
      if(HitContract[playerid] < 1) return 1;
      new name[MAX_PLAYER_NAME+1];
      SendClientMessage(playerid, -1, "--------- List of the contracts -----------");
      foreach(new i : Player) // line 801
      {
            if(Hitman[i]) GetPlayerName(i, name, sizeof(name)), SendClientMessage(playerid, -1, "- Target : %s || Amount : %i", name, GetPVarInt(i, "hitmanmoney"));
      }
      return 1;
}
And, I am getting these errors, even though I've included foreach, and downloaded it.

pawn Код:
C:\Users\Arty\Desktop\CesarLT\gamemodes\FCG.pwn(801) : error 017: undefined symbol "foreach"
C:\Users\Arty\Desktop\CesarLT\gamemodes\FCG.pwn(801) : error 029: invalid expression, assumed zero
C:\Users\Arty\Desktop\CesarLT\gamemodes\FCG.pwn(801) : error 017: undefined symbol "i"
C:\Users\Arty\Desktop\CesarLT\gamemodes\FCG.pwn(801) : 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.
Thanks in advance.
Reply


Messages In This Thread
foreach? - by CesarLT - 05.06.2014, 13:25
Re: foreach? - by MacT - 05.06.2014, 13:31
Re: foreach? - by Rittik - 05.06.2014, 13:31
Re: foreach? - by CesarLT - 05.06.2014, 13:47
Re: foreach? - by Rittik - 05.06.2014, 13:50
Re: foreach? - by Konstantinos - 05.06.2014, 13:54
Re: foreach? - by CesarLT - 05.06.2014, 14:05
Re: foreach? - by CesarLT - 05.06.2014, 14:12
Re: foreach? - by Konstantinos - 05.06.2014, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)