error 001: expected token: "#endif", but found "-end of file-"
#1

Help please, why this problem is so very hard to fix for me!

Код:
C:\Users\Louis Alcosaba\Desktop\garhouse_v2.0\pawno\include\foreach.inc(211) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
    // <foreach> exists - test which is newer.
    #if defined _inc_y_iterate
        #if !defined _FOREACH_CUR_VERSION
            // Foreach exists, but it's an old version - don't try use this
            // system or the variables will conflict.
            #error "Old foreach.inc files are no longer compatible with YSI."
            #endinput
        #endif
        #if _FOREACH_CUR_VERSION > _FOREACH_LOCAL_VERSION
            // Foreach is newer.
            #undef _inc_y_iterate
            #define _FOREACH_NO_TEST
            #include <YSI\y_iterate>
            #endinput                                                <<<<----------------------LINE 211
        #endif
    #endif
#endif

#if !defined _samp_included
    #error "Please include a_samp or a_npc before foreach"
#endif

#if defined _YSI_SPECIAL_DEBUG
    #define PS_IS_PLAYER_CONNECTED(%0) (%0 != INVALID_PLAYER_ID)
#else
Reply
#2

Download THIS include and replace your existing foreach.inc
Reply
#3

Ok, i will try!
Reply
#4

i think you must delete one of your #endif ...
this code to replace
give it a try , i think it can fix that
Quote:

// <foreach> exists - test which is newer.
#if defined _inc_y_iterate
#if !defined _FOREACH_CUR_VERSION
// Foreach exists, but it's an old version - don't try use this
// system or the variables will conflict.
#error "Old foreach.inc files are no longer compatible with YSI."
#endinput
#endif
#if _FOREACH_CUR_VERSION > _FOREACH_LOCAL_VERSION
// Foreach is newer.
#undef _inc_y_iterate
#define _FOREACH_NO_TEST
#include <YSI\y_iterate>
#endinput <<<<----------------------LINE 211
#endif
#endif
#if !defined _samp_included
#error "Please include a_samp or a_npc before foreach"
#endif
#if defined _YSI_SPECIAL_DEBUG
#define PS_IS_PLAYER_CONNECTED(%0) (%0 != INVALID_PLAYER_ID)
#endif

Reply
#5

Quote:
Originally Posted by lonalovegood1
Посмотреть сообщение
i think you must delete one of your #endif ...
this code to replace
give it a try , i think it can fix that
i did yours, but give the same problem still

Код:
C:\Users\Louis Alcosaba\Desktop\garhouse_v2.0\pawno\include\foreach.inc(211) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Quote:
Originally Posted by Salva2000
Посмотреть сообщение
Download THIS include and replace your existing foreach.inc
still having the same problem..

Код:
C:\Users\Louis Alcosaba\Desktop\garhouse_v2.0\GarHouse.pwn(65) : fatal error 100: cannot read from file: "foreach"

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


1 Error.
Код:
//==============================================================================
//                              Includes
//==============================================================================
#define FILTERSCRIPT // Important
#include <a_samp> // Credits to the SA:MP Developement Team
#include <sscanf2> // Credits to ******
#include <YSI\y_ini> // Credits to ******
#include <ZCMD> // Credits to Zeex
#include <streamer> // Credits to Incognito
#include <foreach> // Credits to ****** <<<<---- LINE 65
//##############################################################################
Reply
#7

Quote:
Originally Posted by spykidz01
Посмотреть сообщение
still having the same problem..

Код:
C:\Users\Louis Alcosaba\Desktop\garhouse_v2.0\GarHouse.pwn(65) : fatal error 100: cannot read from file: "foreach"

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


1 Error.
You put this include in garhouse_v2.0/pawno/include?
Reply
#8

Yes, foreach is there..
Reply
#9

How can i fix this pls? +red
Reply
#10

Quote:
Originally Posted by spykidz01
Посмотреть сообщение
How can i fix this pls? +red
dont use +rep for posts, many skilled scripters wont solve it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)