Problem with dini string get - 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: Problem with dini string get (
/showthread.php?tid=359519)
Problem with dini string get -
Stuneris - 14.07.2012
Hi, I have small problem with string get from file.
Код:
locale(locale[], variable[])
{
new file[128], info[500];
format(file, 128, "locales/%s.txt", locale);
info = dini_Get(file, variable);
return info;
}
on using with print on console print <null>
Код:
print(locale("lithuanian", "locale[0]"));
on server empty message
Код:
SendClientMessage(playerid, 0xFF0000FF, locale("lithuanian", "locale[0]"));
on file I have this:
Код:
locale[0]=An lithuaniain text message.
where is problem?
Re: Problem with dini string get -
Stuneris - 14.07.2012
Help please.