15.10.2012, 07:38
Hello!
What's wrong here? The saving is working,but the loading isn't working.
What's wrong here? The saving is working,but the loading isn't working.
PHP код:
//OnGameModeInIt
LoadTeamLimits();
//OnGameModeExit
SaveTeamLimits();
forward SaveTeamLimits();
public SaveTeamLimits()
{
new INI:File = INI_Open("Teams/TeamLimits.ini");
INI_WriteInt(File, "SouthBoysMembers", SouthBoysM);
INI_WriteInt(File, "YakooMembers", YakooM);
INI_WriteInt(File, "TheTriadsMembers", TheTriadsM);
INI_WriteInt(File, "MafiaMembers", MafiaM);
INI_WriteInt(File, "VagosMembers", VagosM);
INI_WriteInt(File, "CopsMembers", CopsM);
INI_WriteInt(File, "HitmanMembers", HitmanM);
INI_WriteInt(File, "NFSMembers", NFSM);
INI_WriteInt(File, "MotoMembers", MotoM);
INI_Close(File);
return 1;
}
stock LoadTeamLimits(name[], value[])
{
new INI:File = INI_Open("Teams/TeamLimits.ini");
INI_Int("SouthBoysMembers",SouthBoysM);
INI_Int("YakooMembers",YakooM);
INI_Int("TheTriadsMembers", TheTriadsM);
INI_Int("MafiaMembers", MafiaM);
INI_Int("VagosMembers", VagosM);
INI_Int("CopsMembers", CopsM);
INI_Int("HitmanMembers", HitmanM);
INI_Int("NFSMembers", NFSM);
INI_Int("MotoMembers", MotoM);
INI_Close(File);
return 0;
}