02.04.2015, 06:01
You can't do that, you can use Dini and ini file at the same time but do not use variables for the same file.
You should use INI for the two if it is the same system.
PHP код:
if(rcInfo[raceinc] != true && rcInfo[racestar] != true)
{
new string[20];
format(string, sizeof(string), "%s", inputtext);
rcInfo[namebuild] = string, rcInfo[buildrace] = true, rcInfo[playercreaterc] = playerid;
//..
new INI:File = INI_Open(FolderRaces(inputtext)); // new ini
INI_SetTag(File, "Information race");
INI_WriteString(File, "name", inputtext);
INI_WriteInt(File, "checkpoints", 0);
INI_WriteInt(File, "vehicle", 0);
INI_WriteFloat(File, "sizeveh", 0.0);
INI_WriteFloat(File, "angleveh", 0.0);
INI_Close(File); // close
Loop(x, 5)
{
// new var file dini ("dini read and write( e.g=5)" ini(e.g = 5).).
format(string, sizeof(string), "BestRacerTime_%d", x);
dini_Set(File, bstring, "0");
format(string, sizeof(string), "BestRacer_%d", x);
dini_Set(File, bstring, "noone");
}
PHP код:
if(rcInfo[raceinc] != true && rcInfo[racestar] != true)
{
new string[20];
format(string, sizeof(string), "%s", inputtext);
rcInfo[namebuild] = string, rcInfo[buildrace] = true, rcInfo[playercreaterc] = playerid;
//..
new INI:File = INI_Open(FolderRaces(inputtext)); // new ini
INI_SetTag(File, "Information race");
INI_WriteString(File, "name", inputtext);
INI_WriteInt(File, "checkpoints", 0);
INI_WriteInt(File, "vehicle", 0);
INI_WriteFloat(File, "sizeveh", 0.0);
INI_WriteFloat(File, "angleveh", 0.0);
for(new x; x != 5; 5++)
{
strdel(string, 0, 20);
format(string, sizeof(string), "BestRacerTime_%d", x);
INI_WriteString(File, string, "data save ?");
strdel(string, 0, 20);
format(string, sizeof(string, "BestRacer_%d", x);
INI_WriteString(File, string, "data save ?");
}
INI_Close(File); // close
}