[PROBLEM] INI:File
#4

Okay, if file does not exist, INI:File will not return -1, i added this for test, and created over 500 files, works perfect:
Код:
FUNCTION: SacuvajTest(idjelke)
{
    new dFile[128];
    new Float:test = 25.2;
	format(dFile, sizeof(dFile),"testfolder/Test_%d.ini",idjelke);
	new INI:File = INI_Open(dFile);
	INI_WriteFloat(File,"Test1",test);
	INI_WriteFloat(File,"Test2",test);
	INI_WriteFloat(File,"Test3",test);
	INI_WriteFloat(File,"Test4",test);
	INI_WriteFloat(File,"Test5",test);
	INI_WriteFloat(File,"Test6",test);
    INI_Close(File);
	return true;
}

CMD:maketest(playerid, params[]) {
        idtesta ++;
        SacuvajTest(idtesta);
        new dFile[128];
        format(dFile, sizeof(dFile),"testfolder/Test_%d.ini",idtesta);
        if(!fexist(dFile)) return VuzimirPoruka(dFile);
	return 1;
}
Reply


Messages In This Thread
[PROBLEM] INI:File - by Dusan01 - 06.02.2016, 07:48
Re: [PROBLEM] INI:File - by Mencent - 06.02.2016, 08:53
Re: [PROBLEM] INI:File - by Dusan01 - 06.02.2016, 09:20
Re: [PROBLEM] INI:File - by Dusan01 - 06.02.2016, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)