13.09.2017, 07:23
Well i have posted lately that Y_ini is not writing any string characters but lately i configured that i define the ClanPath
%d not %i anyway but the fact is the saving system doesn't create more than 1 .ini file
PS:I am not used to Y_INI never used
Thanks In advance
%d not %i anyway but the fact is the saving system doesn't create more than 1 .ini file
PS:I am not used to Y_INI never used
Thanks In advance
PHP код:
forward SaveClan(clanid);
public SaveClan(clanid)
{
new cfile[64];
format(cfile, 64, ClanPath, clanid);
new INI:file = INI_Open(cfile);
INI_SetTag(file,"Clan's Information");
INI_WriteString(file,"Leader", ClanInfo[clanid][Owner]);
INI_WriteString(file,"Name", ClanInfo[clanid][ClanName]);
INI_WriteString(file,"MOTD", ClanInfo[clanid][MOTD]);
INI_WriteString(file,"Rank1", ClanInfo[clanid][Rank1]);
INI_WriteString(file,"Rank2", ClanInfo[clanid][Rank2]);
INI_WriteString(file,"Rank3", ClanInfo[clanid][Rank3]);
INI_WriteString(file,"Rank4", ClanInfo[clanid][Rank4]);
INI_WriteString(file,"Rank5", ClanInfo[clanid][Rank5]);
INI_WriteString(file,"Rank6", ClanInfo[clanid][Rank6]);
INI_WriteInt(file,"Skin", ClanInfo[clanid][cSkin]);
INI_WriteInt(file,"XP", ClanInfo[clanid][XP]);
INI_WriteInt(file,"Members", ClanInfo[clanid][Members]);
INI_WriteInt(file,"ID", ClanInfo[clanid][cID]);
INI_Close(file);
return 1;
}