SA-MP Forums Archive
Loop error ? - 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: Loop error ? (/showthread.php?tid=318650)



Loop error ? - [Nikk] - 15.02.2012

I have this in my weather system

pawn Код:
case 7:
            SendClientMessageToAll(COLOR_LIGHTBLUE,"Servicio Meteorologico de SA:{FFFFFF} [Estado Actuali]: Cielo Parcialmente nublado con una visibilidad de 6 km.");
            for(new i = 0; i < MAX_PLAYERS; i++)//errors
            {
            CreateSnow(i);
            }
error 002: only a single statement (or expression) can follow each "case"
error 029: invalid expression, assumed zero
error 017: undefined symbol "i"


why !Ў?


Re: Loop error ? - Vince - 15.02.2012

pawn Код:
case 7:
{
    // code here
}



Respuesta: Loop error ? - [Nikk] - 15.02.2012

thanks