PDA

View Full Version : help with error y_ini ( YSI 4.0 )


Schocc
21/03/2014, 02:57 PM
My intention is to test y_uvar y_users.
how to Solve?


#include <a_samp>

#define PP_YSI
#define MODE_NAME "example_mode"

#include <YSI\y_users>
#include <YSI\y_uvar>

enum E_DATA
{
flag1,
flag2
}
uvar P_DATA[MAX_PLAYERS][E_DATA];


main(){}

public OnGameModeInit()
{
Langs_AddLanguage("PT", "PortuguÍs");
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

return 1;
}



\pawno\include\YSI\..\YSI_Players\y_users/ini.inc(633) : error 017: undefined symbol "INI_WriteArray"
\pawno\include\YSI\..\YSI_Players\y_users/ini.inc(628) : warning 203: symbol is never used: "len"

Carac
21/03/2014, 05:12 PM
Do you've the YSI folder in your Pawno folder?

Guest4390857394857
21/03/2014, 05:43 PM
please post the line 633 and 628

Schocc
21/03/2014, 05:49 PM
please post the line 633 and 628

File:\pawno\include\YSI_Players\y_users\ini.inc
http://forum.sa-mp.com/attachment.php?attachmentid=7239&stc=1&d=1395423965

Possibly this is a bug in version 4.0, I tested with version 3.1 and no error occurred.

Schocc
25/03/2014, 12:19 AM
SOLVED...


I have a solution to this problem.
The stock was simply uncomment this file.
pawno\include\YSI_Storage\y_ini\writing.inc

Line 628, remove the /**/ on stock, and save the file.
/*stock INI_WriteArray(INI:file, const name[], data[], len)
{