include\YSI/y_ini.inc(76) : fatal error 100: cannot read from file: "..\YSI_Storage\y_ini"
#1

no matter tf i do, updating the YSI putting the AMX folder in trying YSI older version, trying YSI 4, deleting everything from my include folder and reinstalling YSI, trying different unofficial YSI download mirrors it dont fkn matter i still get this STORAGE error

i wasted 2 hours on this already and i still get the same "..\YSI_Storage\y_ini" error nothing else

see the attachments to look at my include folder, im not going to waste more time on this bsht im just trying to compile a register and login script

#include <YSI/y_ini>

included the include like this
Reply
#2

Do not use backslash:
pawn Код:
#include <YSI\y_ini>
Reply
#3

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Do not use backslash:
pawn Код:
#include <YSI\y_ini>
now i get this warning:

\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
Reply
#4

YSI does not check if isnull is defined before re-defining it. Although, you are supposed to include YSI libraries directly after a_samp.inc which will also solve the problem if the other libraries check for it.
Reply
#5

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
YSI does not check if isnull is defined before re-defining it. Although, you are supposed to include YSI libraries directly after a_samp.inc which will also solve the problem if the other libraries check for it.
#include <a_samp>
#include <ZCMD>
#include <sscanf2>
#include <YSI\y_ini>

and i also get this error on other filterscripts only if i put #include <YSI\y_ini> in it too under <a_samp>

whats the problem?
Reply
#6

You have macro `isnull` defined in your code without check if that macro already exists.
Reply
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
You have macro `isnull` defined in your code without check if that macro already exists.
i have no idea what to do now, can you tell me step by step what i have to change? i will rep whenever i dont get any errors/warnings anymore

thanks
Reply
#8

Quote:
Originally Posted by JuWo
Посмотреть сообщение
#include <a_samp>
#include <ZCMD>
#include <sscanf2>
#include <YSI\y_ini>

and i also get this error on other filterscripts only if i put #include <YSI\y_ini> in it too under <a_samp>

whats the problem?
ZCMD has isnull defined and is included before YSI libraries. Then YSI tries to re-define it and result in error.
Set the order of the includes correctly (y_ini directly after a_samp.inc):
pawn Код:
#include <a_samp>
#include <YSI\y_ini>
// other YSI libraries if you want to use
// below any other
#include <ZCMD>
#include <sscanf2>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)