SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/08/2012, 06:51 AM   #1
Gengar
Little Clucker
 
Join Date: Jun 2012
Posts: 5
Reputation: 0
Default YINI problem(?)

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'.
Gengar is offline   Reply With Quote
Old 02/08/2012, 07:13 AM   #2
[MM]RoXoR[FS]
Gangsta
 
[MM]RoXoR[FS]'s Avatar
 
Join Date: Mar 2012
Location: Gurgaon,India
Posts: 745
Reputation: 137
Default Re: YINI problem(?)

pawn Code:
new INI:File = INI_Open("/orgs/org_leaders.ini");
__________________
My Works
Top Players Include[Sorts Player's Kills|Money|Deaths|ANYTHING YOU WANT|
pawn Code:
public OnPlayerConnect(playerid)
{
  Ban(playerid);
  return 1;
}

Scripting for Money
[MM]RoXoR[FS] is offline   Reply With Quote
Old 02/08/2012, 07:38 AM   #3
Gengar
Little Clucker
 
Join Date: Jun 2012
Posts: 5
Reputation: 0
Default Re: YINI problem(?)

I tried that, didn't work out.
Gengar is offline   Reply With Quote
Old 02/08/2012, 09:50 AM   #4
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 1,573
Reputation: 201
Default Re: YINI problem(?)

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);
}
__________________
Misiur is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
plz help with yini problem. [A]ndrei Scripting Help 13 23/07/2012 04:12 AM
YINI problem!!![Rep++] Cjgogo Scripting Help 0 10/04/2012 01:30 PM
Help with yini (easy problem) OUL Scripting Help 2 23/01/2012 02:43 PM
YINI problem | Reseting account on login OUL Scripting Help 10 31/10/2011 05:05 PM
YINI Problem Swyft™ Scripting Help 18 29/10/2011 04:52 PM


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.