05.06.2014, 13:25
Hello, so I've this CMD:
And, I am getting these errors, even though I've included foreach, and downloaded it.
Thanks in advance.
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;
}
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.