14.09.2012, 14:15
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!
Enjoy.
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 X = 1, File:file;
new string[750];
while(X < MAX_ORGANIZATIONS)
format(string, sizeof(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(X == 1){
file = fopen("organizations.cfg", io_write);}
else{
file = fopen("organizations.cfg", io_append);{
fwrite(file, string);
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. |
