(2020-09-26, 12:42 PM)Y_Less Wrote: There are no file operations there - y_ini is used to save data, you aren't saving any data.
PHP Code:
public OnGameModeExit()
{
//==============================| CBUG System |===============================//
new INI:file = INI_Open("cbugrecords.ini");
INI_WriteInt(file,"top1",top1);
INI_WriteInt(file,"top2",top2);
INI_WriteInt(file,"top3",top3);
INI_WriteInt(file,"top4",top4);
INI_WriteInt(file,"top5",top5);
INI_WriteString(file,"topname1",topname1);
INI_WriteString(file,"topname2",topname2);
INI_WriteString(file,"topname3",topname3);
INI_WriteString(file,"topname4",topname4);
INI_WriteString(file,"topname5",topname5);
INI_Close(file);
//============================================================================//
return 1;
}
this does, but when i load the server, it doesn't look it like it saves the times names, it loads the data before i did a good record.
for example: i cbug and the time counter starts, when i finish with all the 7 bullets (deagle), it places me at the 3rd place with a time of 700 millisecs. the problem comes when i stop the server restart it, it doesn't load the 700 ms time which is placed at 3.
edit: i have also a few other stuff but i don't think they would help..