Unmatched closing bracket.
#6

Would you stop creating threads, and do some researching first?
That error tells you exactly what's wrong. Your closing brackets make no sense. For each opening bracket: { you must also have a closing bracket: }.

Not two per opening. Not three per opening. ONE.

You could have found this answer if you had simply used the search function.

Anyways This Should Work!
PHP код:
stock SaveOrganizations()
{
    new 
1File:file;
    new 
string[750];
    while(
MAX_ORGANIZATIONS)
    
format(stringsizeof(string), "%s|%f|%f|%f|%f|%f|%f|%f|%f|%s|%s|%s|%s|%s|%s|%d|\r\n",
    {
        
O_DATA[X]OrgName,
        
O_DATA[X]OrgInt[0],
        
O_DATA[X]OrgInt[1],
        
O_DATA[X]OrgInt[2],
        
O_DATA[X]OrgInt[3],
        
O_DATA[X]OrgEx[0],
        
O_DATA[X]OrgEx[1],
        
O_DATA[X]OrgEx[2],
        
O_DATA[X]OrgEx[3],
        
O_DATA[X]OrgRank1,
        
O_DATA[X]OrgRank2,
        
O_DATA[X]OrgRank3,
        
O_DATA[X]OrgRank4,
        
O_DATA[X]OrgRank5,
        
O_DATA[X]OrgRank6,
        
O_DATA[X]OrgMembers);
        if(
== 1){
            
file fopen("organizations.cfg"io_write);}
        else{
            
file fopen("organizations.cfg"io_append);{
        
fwrite(filestring);
        
fclose(file);
        
X++;
    }

Quote:

file = fopen("organizations.cfg", io_append);} // You had This I Changed To
file = fopen("organizations.cfg", io_append);{ // This Should Do It.

Enjoy.
Reply


Messages In This Thread
Unmatched closing bracket. - by Sasoft - 14.09.2012, 14:06
Re: Unmatched closing bracket. - by Roko_foko - 14.09.2012, 14:07
AW: Unmatched closing bracket. - by BiosMarcel - 14.09.2012, 14:08
Re: Unmatched closing bracket. - by Sasoft - 14.09.2012, 14:09
Re: Unmatched closing bracket. - by Sasoft - 14.09.2012, 14:12
Re: Unmatched closing bracket. - by Sig Hansen - 14.09.2012, 14:15
Re: Unmatched closing bracket. - by SuperViper - 14.09.2012, 14:29
Re: Unmatched closing bracket. - by clarencecuzz - 14.09.2012, 14:40
Re: Unmatched closing bracket. - by Sasoft - 14.09.2012, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)