18.05.2012, 18:44
(
Последний раз редактировалось HDFord; 19.05.2012 в 10:27.
)
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!
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;
}