Y_INI doesn't read my saved data part two
#1

pawn Код:
for(new groupid = 0; groupid < MAX_GROUPS; groupid++) INI_ParseFile(GPath(groupid), "loadgroup_%s", .bExtra = true, .extra = groupid); //This is how I load data
//public
forward loadgroup_basic(groupid, name[], value[]);
public loadgroup_basic(groupid, name[], value[])
{
    INI_Int("ID",FactionID[groupid]);
    INI_String("Name",FactionName[groupid],24);
    INI_String("Leader",FactionLeader[groupid],24);
    INI_Int("Members",FactionMembers[groupid]);
    return 1;
}
//Definition
#define gPath "Groups/%d.ini"

stock GPath(groupid)
{
    new str[128];
    format(str,sizeof(str),gPath,groupid);
    return str;
}
Help.
Reply
#2

pawn Код:
#define gPath "Groups\%d.ini"
Reply
#3

Huh? It's already defined.
Reply
#4

pawn Код:
#define gPath "Groups/%d.ini"
// change it to
#define gPath "Groups\%d.ini"
// notice something??? the "\" and the "/"
Reply
#5

But my file saves well on that path. The problem is, it doesn't read it.
Reply
#6

show your enum
Reply
#7

This has been already been solved.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)