Undefined symbol "INI_String" but I have #include <YSI\y_ini> - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Undefined symbol "INI_String" but I have #include <YSI\y_ini> (
/showthread.php?tid=272904)
Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Jack_Leslie - 30.07.2011
The title says it all, the script doesn't recognize INI_String but I have included y_ini before the callback that uses INI_String.
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Lorenc_ - 30.07.2011
INI_String wasn't created for me as well, though what are you using it for? To load files use parsefile
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Jack_Leslie - 30.07.2011
I have this:
Code:
public LoadUserData(playerid, name[], value[])
{
INI_String("Password", PlayerInfo[playerid][Password]);
INI_Int("Admin", PlayerInfo[playerid][Admin]);
INI_Int("Firstname", PlayerInfo[playerid][Firstname]);
INI_Int("Lastname", PlayerInfo[playerid][Lastname]);
INI_Int("Age", PlayerInfo[playerid][Age]);
INI_Int("Gender", PlayerInfo[playerid][Gender]);
INI_Int("Money", PlayerInfo[playerid][Money]);
INI_Int("Bank", PlayerInfo[playerid][Bank]);
INI_Int("Level", PlayerInfo[playerid][Level]);
INI_Int("Registered", PlayerInfo[playerid][Registered]);
return 1;
}
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Jack_Leslie - 31.07.2011
Anyone know the solution, please?
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Kush - 31.07.2011
Quote:
Originally Posted by Jack_Leslie
Anyone know the solution, please?
|
In relation to ******'s post which helped me. Write as a string. Load as an integer.
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Jack_Leslie - 31.07.2011
EDIT:
Solved, thanks Kush,
Re: Undefined symbol "INI_String" but I have #include <YSI\y_ini> -
Kush - 31.07.2011
No problem.