Job Script Error
#1

PHP код:
C:\Users\Борисов\Desktop\BG RP Server\filterscripts\Courier.pwn(81) : error 017undefined symbol "foreach"
C:\Users\Борисов\Desktop\BG RP Server\filterscripts\Courier.pwn(81) : error 029invalid expressionassumed zero
C
:\Users\Борисов\Desktop\BG RP Server\filterscripts\Courier.pwn(81) : error 017undefined symbol "Player"
C:\Users\Борисов\Desktop\BG RP Server\filterscripts\Courier.pwn(81) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

this is Line 81
PHP код:
    foreach(new iPlayer
Reply
#2

Have you included the foreach include?:
PHP код:
#include <foreach> 
You need to have the .inc file in the /pawno/include directory.
Reply
#3

Yes..... :/
Reply
#4

Is it the latest version? If so, do you mind showing a bit more code around the error line?
Reply
#5

PHP код:
public OnFilterScriptExit()
{
    foreach(new 
iPlayer)
    {
        
DeliveryMan[i] = false;
        
InJob[i] = false;
        
DisablePlayerCheckpoint(i);
        
KillTimer(Unload_Timer[i]);
    }

    return 
1;

Reply
#6

Try:
PHP код:
foreach(Playeri); 
And I just read that if you are using YSI 3.1 that you have to include y_iterate. Unless you're using the standalone version.

And if that works then update your include because that's deprecated syntax.
Reply
#7

didnt work...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)