SA-MP Forums Archive
Problem with foreach - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with foreach (/showthread.php?tid=414179)



Problem with foreach - sTr - 08.02.2013

I get last foreach and zcmd, and it don't work.
i have errors.

Код:
C:\Users\Andrei\Desktop\samp0.3xxx\gamemodes\gmx.pwn(316) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Andrei\Desktop\samp0.3xxx\gamemodes\gmx.pwn(316) : error 017: undefined symbol "COL_ORANGE"
C:\Users\Andrei\Desktop\samp0.3xxx\gamemodes\gmx.pwn(316) : warning 215: expression has no effect
C:\Users\Andrei\Desktop\samp0.3xxx\gamemodes\gmx.pwn(316) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Andrei\Desktop\samp0.3xxx\gamemodes\gmx.pwn(316) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
And this is line:
pawn Код:
public MinigameCountdown( )
{
    if( Iter_Count(_Minigamer) < 1 ) //End minigame if there aren't enough sign ups
    {
        SendClientMessageToAll( LIME,"There wasn't enough players to start "COL_ORANGE"Don't Get Wet"COL_LIME" minigame." );
        foreach(_Minigamer, i) Minigamer_{ i } = false;
        return EndMinigame( );
    }