YINI problem(?) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YINI problem(?) (
/showthread.php?tid=365170)
YINI problem(?) -
Gengar - 02.08.2012
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'.
Re: YINI problem(?) -
[MM]RoXoR[FS] - 02.08.2012
pawn Code:
new INI:File = INI_Open("/orgs/org_leaders.ini");
Re: YINI problem(?) -
Gengar - 02.08.2012
I tried that, didn't work out.
Re: YINI problem(?) -
Misiur - 02.08.2012
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);
}