YINI problem(?)
#1

Alright I'm trying to make orgs for my RP gamemode But when I try and compile I get these errors. I believe they're related to my yini save system


Code:
~~~~~~~~~.pwn(332) : error 017: undefined symbol "name"
~~~~~~~~~.pwn(332) : error 017: undefined symbol "value"
here are the corresponding codes
pawn Code:
for (new i=1;i<OrgsCount+1;i++)
    {
    new INI:File = INI_Open(orgs/org_leaders.ini);
    format(part2,sizeof(part2),"\"%d\"", i);
   
    INI_String(part2,Organization[i][Leader],50);   // THIS IS LINE 332
    INI_Close(File);
    }
I'm trying to read the names of the org leaders and save it to a 2D array 'Organization'.
Reply
#2

pawn Code:
new INI:File = INI_Open("/orgs/org_leaders.ini");
Reply
#3

I tried that, didn't work out.
Reply
#4

pawn Code:
INI_String(part2,Organization[i][Leader],50);
//Change to
INI_WriteString(part2,Organization[i][Leader],50);
Acutally your code looks messy. What do you need escaped quotes for?

pawn Code:
for(new i=1; i<OrgsCount+1; i++)
{
    new INI:File = INI_Open("orgs/org_leaders.ini");
    format(part2, sizeof(part2), "%d", i);
   
    INI_WriteString(part2, Organization[i][Leader], 50);
    INI_Close(File);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)