Y_INI reading help
#1

I'm trying to make MULTI-LANGUAGE support
pawn Code:
stock SCM(playerid, color, ID)
{
     new LanguageFile[24];
     new PlayerLanguageString[24];
     new Line[128];
     GetPVarString(playerid, "PLAYER_LANGUAGE", PlayerLanguageString, 24);
     format(LanguageFile, 24, "Languages/%s.lang", PlayerLanguageString);
     format(PlayerLanguageString, 24, "LineID:%i", ID);
     INI_Load(LanguageFile);
              INI_String(Line, PlayerLanguageString );
              printf("Line: %s", Line);
}
For example i have
Code:
LineID:1|Laipni lūgts manā serverī
In the file, so this is how i read this??
and then i will sscanf the line

Got this too
Code:
error 017: undefined symbol "INI_String"
I have the newest YSI
Reply


Messages In This Thread
Y_INI reading help - by armyoftwo - 20.12.2010, 18:34
Re: Y_INI reading help - by armyoftwo - 21.12.2010, 11:31
Re: Y_INI reading help - by armyoftwo - 21.12.2010, 16:27
Re: Y_INI reading help - by armyoftwo - 22.12.2010, 11:28
Re: Y_INI reading help - by armyoftwo - 23.12.2010, 08:28
Re: Y_INI reading help - by armyoftwo - 23.12.2010, 15:10
Re: Y_INI reading help - by Lady Cucumber - 23.12.2010, 17:07
Re: Y_INI reading help - by Hal - 23.12.2010, 17:31
Re: Y_INI reading help - by Lady Cucumber - 26.12.2010, 09:37
Re: Y_INI reading help - by Mаkaveli - 03.01.2011, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)