Problem with 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)
+--- Thread: Problem with y_ini (
/showthread.php?tid=343738)
Problem with y_ini[still need help] -
HDFord - 18.05.2012
I have a problem with y_ini. It does not save the the data in the file.
Here are a code that i just made as a example. I've tested it and it does not save anything but it do create the file "example.ini" inside scriptfiles. If someone can see anything wrong about this please tell me!
pawn Код:
#include <a_samp>
#include <YSI\y_ini>
new Example[] = "example.INI";
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/test",cmdtext,true) == 0)
{
new INI:File = INI_Open(Example);
new string1[128];
format(string1,sizeof(string1),"blalalala",string1);
INI_SetTag(File,"example");
INI_WriteString(File,"a string",string1);
INI_Close(File);
return 1;
}
return 0;
}
Re: Problem with y_ini -
HDFord - 19.05.2012
I do really need help with this!
AW: Problem with y_ini -
Dominik. - 19.05.2012
I'm not a user of yini,
But i think you must save the file.
Maybe INI_Save(File) ?
Re: Problem with y_ini -
HDFord - 19.05.2012
there is no INI_Save, it's just open, write and close