Loading ranks
#1

Could anymore help me? When I save my factions, it saves the rank. but when loading it, it doesn't seem to load..

pawn Код:
SaveFactions(facid)
{
    new INI:File = INI_Open(FacPath(facid));
    INI_SetTag(File,"Faction");
    INI_WriteString(File,"Name", FacInfo[facid][fName]);
    INI_WriteFloat(File,"IntX", FacInfo[facid][IntX]);
    INI_WriteFloat(File,"IntY", FacInfo[facid][IntY]);
    INI_WriteFloat(File,"IntZ", FacInfo[facid][IntZ]);
    INI_WriteFloat(File,"ExtX", FacInfo[facid][ExtX]);
    INI_WriteFloat(File,"ExtY", FacInfo[facid][ExtY]);
    INI_WriteFloat(File,"ExtZ", FacInfo[facid][ExtZ]);
    INI_WriteInt(File,"Interior", FacInfo[facid][fInterior]);
    INI_WriteString(File,"Rank1", FacInfo[facid][fRank1]);
    INI_WriteString(File,"Rank2", FacInfo[facid][fRank2]);
    INI_WriteString(File,"Rank3", FacInfo[facid][fRank3]);
    INI_WriteString(File,"Rank4", FacInfo[facid][fRank4]);
    INI_WriteString(File,"Rank5", FacInfo[facid][fRank5]);
    INI_WriteString(File,"Rank6", FacInfo[facid][fRank6]);
    INI_WriteInt(File,"Type", FacInfo[facid][fType]);
    INI_WriteInt(File,"Vault", FacInfo[facid][fVault]);
    INI_WriteInt(File,"Materials", FacInfo[facid][fMaterials]);
    INI_WriteInt(File,"Weed", FacInfo[facid][fWeed]);
    INI_WriteInt(File,"Cocaine", FacInfo[facid][fCocaine]);
    INI_Close(File);
    return 1;
}
pawn Код:
forward LoadFactions_Faction(facid,name[],value[]);
public LoadFactions_Faction(facid,name[],value[])
{
    INI_String("Name", FacInfo[facid][fName], 35);
    INI_Float("IntX", FacInfo[facid][IntX]);
    INI_Float("IntY", FacInfo[facid][IntY]);
    INI_Float("IntZ", FacInfo[facid][IntZ]);
    INI_Float("ExtX", FacInfo[facid][ExtX]);
    INI_Float("ExtY", FacInfo[facid][ExtY]);
    INI_Float("ExtZ", FacInfo[facid][ExtZ]);
    INI_Int("Interior", FacInfo[facid][fInterior]);
    INI_String("Rank1", FacInfo[facid][fRank1], 24);
    INI_String("Rank2", FacInfo[facid][fRank2], 24);
    INI_String("Rank3", FacInfo[facid][fRank3], 24);
    INI_String("Rank4", FacInfo[facid][fRank4], 24);
    INI_String("Rank5", FacInfo[facid][fRank5], 24);
    INI_String("Rank6", FacInfo[facid][fRank6], 24);
    INI_Int("Type", FacInfo[facid][fType]);
    INI_Int("Vault", FacInfo[facid][fVault]);
    INI_Int("Materials", FacInfo[facid][fMaterials]);
    INI_Int("Weed", FacInfo[facid][fWeed]);
    INI_Int("Cocaine", FacInfo[facid][fCocaine]);
    return 1;
}
Reply


Messages In This Thread
Loading ranks - by Zeppo - 23.03.2014, 20:33
Re: Loading ranks - by newbienoob - 23.03.2014, 20:37
Re: Loading ranks - by Zeppo - 23.03.2014, 20:39
Re: Loading ranks - by newbienoob - 23.03.2014, 20:52
Re: Loading ranks - by Zeppo - 23.03.2014, 20:56
Re: Loading ranks - by newbienoob - 23.03.2014, 20:58
Re: Loading ranks - by Zeppo - 23.03.2014, 21:18
Re: Loading ranks - by newbienoob - 24.03.2014, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)