SA-MP Forums Archive
y_ini problem. - 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: y_ini problem. (/showthread.php?tid=472218)



y_ini problem. - Kyance - 27.10.2013

When-ever i try to Compile my script, i have this error
Код:
<direction>\test.pwn(1322) : warning 203: symbol is never used: "Langs_AddLanguage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And i only have 1321 lines..
I have the y_ini #defined and #included ..


Re: y_ini problem. - iJumbo - 27.10.2013

try by adding under OnGameModeInit

pawn Код:
Langs_AddLanguage("EN", "English");
let me know if works


Re: y_ini problem. - Kyance - 27.10.2013

Haha, thanks!
But, could you answer me this?:
Why is my pawno compiling slower, since i've added the y_ini?


Re: y_ini problem. - Patrick - 27.10.2013

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
try by adding under OnGameModeInit

pawn Код:
Langs_AddLanguage("EN", "English");
let me know if works
It's not about Kyance adding the code below OnGameModeInit the compiler warns you that you do not use that variable, if you don't use it just simply comment(//) that line since you aren't using it.

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Haha, thanks!
But, could you answer me this?:
Why is my pawno compiling slower, since i've added the y_ini?
****** mentioned this before, just a little researched could help you.
Quote:
Originally Posted by ******
It takes a long time to compile because you are including ALL of YSI, and that's a LOT of code! Most people only include the individual libraries that they require. y_text especially is very big, you can speed up compile times during testing by doing:

pawn Код:
#define YSI_NO_X11



Re: y_ini problem. - Kyance - 27.10.2013

Well.. thanks then :d
repped both xd


Re: y_ini problem. - Kyance - 27.10.2013

Uh, another problem.
I followed a Login/Register tutorial for y_ini, but it says
*** YSI ERROR: YSI/users/index.YSI does not exist and couldn't be created.
*** YSI ERROR: Could not upgrade the user files.
Well, all i understand is that the path isn't correct.
I have this in the defines:
pawn Код:
#define PATH "/Users/%s.ini"
But i still don't understand, how to change/find the path..
The tutorial i followed: https://sampforum.blast.hk/showthread.php?tid=273088
--
IGNORE IT, MOVING TO SOMETHING ELSE xd