Compiler error
#1

When I compile my new version of my gamemode (v1.1c) I get this errors in the compiler output;

Код:
C:\Users\Kevin Burke\Desktop\CGRP\Backup\CGRP\gamemodes\CG-RPv1.pwn(1354) : error 017: undefined symbol "foreach"
C:\Users\Kevin Burke\Desktop\CGRP\Backup\CGRP\gamemodes\CG-RPv1.pwn(1354) : error 029: invalid expression, assumed zero
C:\Users\Kevin Burke\Desktop\CGRP\Backup\CGRP\gamemodes\CG-RPv1.pwn(1354) : error 017: undefined symbol "i"
C:\Users\Kevin Burke\Desktop\CGRP\Backup\CGRP\gamemodes\CG-RPv1.pwn(1354) : fatal error 107: too many error messages on one line

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


4 Errors.
Then I switch to line 1354, and this is in it;

Код:
    foreach(new i : Player)
I have foreach.inc in my pawno/includes, but shit aint working. I also have #include <foreach>

This is the whole code from line 1352-1359;

Код:
IsVehicleOccupied( vehicleid )
{
    foreach(new i : Player)
    {
     if( IsPlayerInVehicle( i, vehicleid ) ) return 1;
    }
    return 0;
}
Any solution?
Reply


Messages In This Thread
Compiler error - by iKevin - 23.01.2016, 17:29
Re: Compiler error - by Lumineux - 23.01.2016, 17:32
Re: Compiler error - by iKevin - 23.01.2016, 17:33
Re: Compiler error - by iKevin - 23.01.2016, 17:42
Re: Compiler error - by iKevin - 23.01.2016, 18:00
Re: Compiler error - by iKevin - 23.01.2016, 18:54
Re: Compiler error - by iKevin - 23.01.2016, 20:42
Re: Compiler error - by Ripster - 23.01.2016, 20:53
Re: Compiler error - by iKevin - 23.01.2016, 20:55
Re: Compiler error - by Ripster - 23.01.2016, 20:57

Forum Jump:


Users browsing this thread: 1 Guest(s)