23.01.2016, 17:29
When I compile my new version of my gamemode (v1.1c) I get this errors in the compiler output;
Then I switch to line 1354, and this is in it;
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;
Any solution?
Код:
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.
Код:
foreach(new i : Player)
This is the whole code from line 1352-1359;
Код:
IsVehicleOccupied( vehicleid ) { foreach(new i : Player) { if( IsPlayerInVehicle( i, vehicleid ) ) return 1; } return 0; }