Faction doesn't save
#1

Here's my saving function
PHP код:
forward SaveFaction(id);
public 
SaveFaction(id)
{
    new 
file[40];
    
format(filesizeof(file), FPathid);
    new 
INI:File INI_Open(file);
    
INI_SetTag(File,"data");
    
INI_WriteInt(File"Members",FacInfo[id][fMembers]);
    
INI_WriteString(File,"Leader",FacInfo[id][fLeader]);
    return 
1;

Here's FPath
PHP код:
#define FPath "/factions/%d.ini" 
Problem here is that it doesn't create the .ini file. Yes, I made a 'factions' folder in my scriptfiles
Reply
#2

PHP код:
forward SaveFaction(id); 
public 
SaveFaction(id

    new 
file[40]; 
    
format(filesizeof(file), FPathid); 
    new 
INI:File INI_Open(file); 
    
INI_SetTag(File,"data"); 
    
INI_WriteInt(File"Members",FacInfo[id][fMembers]); 
    
INI_WriteString(File,"Leader",FacInfo[id][fLeader]); 
    
INI_Close(File);
    return 
1

PHP код:
#define FPath "/factions/%i.ini" 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)