SA-MP Forums Archive
I have a problem with this. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I have a problem with this. (/showthread.php?tid=645293)



I have a problem with this. - MariusAdv - 24.11.2017

What is wrong with this:

Код:
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
I have 1 warning and 4 errors with this line:

Код:
error 017: undefined symbol "INI_ParseFile"
warning 215: expression has no effect
error 029: invalid expression, assumed zero
error 017: undefined symbol "extra"
fatal error 107: too many error messages on one line



Re: I have a problem with this. - RedFusion - 24.11.2017

Did you include y_ini in your script?


Re: I have a problem with this. - MariusAdv - 24.11.2017

I put y_ini in my script and
fatal error 100: cannot read from file: "YSI\y_ini"


Re: I have a problem with this. - RedFusion - 24.11.2017

Which compiler do you use? If you use pawno, then do you have y_ini.inc in the folder pawno\include\YSI ?


Re: I have a problem with this. - MariusAdv - 24.11.2017

I use sublime text 3 and i have y_ini.inc in the folder pawno\include\YSI.


Re: I have a problem with this. - RxErT - 24.11.2017

Hi there Marius, just some more information and as RedFusion says that you have to include y_ini.inc in your script to stop having this error.
Can you just check the location of y_ini.inc if it is in pawno\include\YSI\ or in pawno\include\?

so if it was in pawno\include\YSI\ then just put in your script the following:

PHP код:
#include <YSI\y_ini> 
and if it was in pawno\include\ so put the following in you script:

PHP код:
#include <y_ini> 
and i'm 100% sure and you won't get any errors unless you don't have the y_ini in your PC.


Re: I have a problem with this. - RxErT - 24.11.2017

then try
PHP код:
#include <YSI\y_ini.inc> 



Re: I have a problem with this. - MariusAdv - 24.11.2017

Nope, fatal error 100: cannot read from file: "YSI\y_ini.inc"


Re: I have a problem with this. - RedFusion - 24.11.2017

It seems like you don't have y_ini.inc in the path "..\pawno\include\YSI\"


Re: I have a problem with this. - MariusAdv - 24.11.2017

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
It seems like you don't have y_ini.inc in the path "..\pawno\include\YSI\"
This YSI is good?:

This YSI have y_ini and more.