Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Error checking Routine for Mysql [*UPDATED 20/4*]

Junior Spellweaver
Joined
Apr 9, 2008
Messages
188
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

1>.\MySQLM.cpp(185) : error C2337: 'color' : attribute not found

Why putting BB code in CPP Code lol
 
Junior Spellweaver
Joined
Apr 9, 2008
Messages
188
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

We are having this error still...
Dichotome - [Release] Error checking Routine for Mysql [*UPDATED 20/4*] - RaGEZONE Forums


Same Error again more descriptive

Dichotome - [Release] Error checking Routine for Mysql [*UPDATED 20/4*] - RaGEZONE Forums


It's always happening starting from here...

Code:
			string mr = string((char*)mrow[0]);
			istringstream buffer(mr);
			buffer >> ret;
		}
	}
	mysql_free_result(mres);
	return ret;
}

Note: This is on a fresh clean TitanMS rev.007 w/ rebuilt DB
 
Newbie Spellweaver
Joined
Apr 5, 2008
Messages
10
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

I get this error in the console:
Dichotome - [Release] Error checking Routine for Mysql [*UPDATED 20/4*] - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
81
Reaction score
2
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

1>.\MySQLM.cpp(185) : error C2337: 'color' : attribute not found

Why putting BB code in CPP Code lol

I was so confuzed by that error when I got it but now I see this.
I lol'd. hard. :rotflmao:
 
Experienced Elementalist
Joined
Apr 3, 2008
Messages
236
Reaction score
7
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

so whats this?


c:\documents and settings\personal\desktop\maplestoryserver 007\maplestoryserver\mysqlm.cpp(186) : error C2337: 'color' : attribute not found
c:\documents and settings\personal\desktop\maplestoryserver 007\maplestoryserver\mysqlm.cpp(187) : error C2146: syntax error : missing ';' before identifier 'sprintf_s'
 
Junior Spellweaver
Joined
Sep 20, 2007
Messages
138
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

dayum.... its called a leech protection lol
 
Newbie Spellweaver
Joined
Aug 10, 2007
Messages
27
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

amazing,
gonna check is asap.
 
Newbie Spellweaver
Joined
Dec 12, 2007
Messages
54
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Everything works for me except the MySQL:showEquips so i changed it a little bit

This is what i changed it into

Code:
 int MySQL::showEquips(int id, int equips[15][2]){
    MYSQL_RES *mres;
    MYSQL_ROW mrow;
    char query[255]; 
    int ret = 0;
    sprintf_s(query, 255, "SELECT equipid, type FROM equip WHERE (charid = %d AND pos<0);", id);
    mysql_real_query(&maple_db, query, strlen(query));
    mres = mysql_store_result(&MySQL::maple_db);
    if (mres == 0 ){
        printf_s("\n\rError in showEquips SQL returned no rows (Mysql_error: %s)",mysql_error(&maple_db)); 
        printf_s("SQL Query is : %s",query);
    }
    else {
        mrow = mysql_fetch_row(mres);
        for(int i=0; i<mysql_num_rows(mres); i++){
            string mr = string((char*)mrow[0]);
            istringstream buffer(mr);
            buffer >> equips[i][0];
            string mr2 = string((char*)mrow[1]);
            istringstream buffer2(mr2);
            buffer2 >> equips[i][1];
            mrow = mysql_fetch_row(mres);
        }
    }
    ret = (int)mysql_num_rows(mres);
    mysql_free_result(mres);
    return ret;
}

Works fine for me..
 
Newbie Spellweaver
Joined
Aug 10, 2007
Messages
27
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

EDIT: NVM, lol
i should read error beofore posting =.=
 
Experienced Elementalist
Joined
Apr 8, 2008
Messages
203
Reaction score
29
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Sorry people - I originally highlighted the code to make it easier to see what was new.

Unfortunately I must have missed half of a pairing somewhere (I will check).

As regards anti leeching - lol - If I wanted that I would not have posted it.

** EDIT**

I checked the source in the boxes at start of thread - I had missed one colour control =[
It is corrected now.
 
Experienced Elementalist
Joined
Apr 8, 2008
Messages
203
Reaction score
29
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

so whats this?


c:\documents and settings\personal\desktop\maplestoryserver 007\maplestoryserver\mysqlm.cpp(186) : error C2337: 'color' : attribute not found
c:\documents and settings\personal\desktop\maplestoryserver 007\maplestoryserver\mysqlm.cpp(187) : error C2146: syntax error : missing ';' before identifier 'sprintf_s'


There was a colour attribute left in the original code. I had highlighted it to show where it was changed.
Unfortunately I missed 1 side of a pairing when I removed them.
 
Experienced Elementalist
Joined
Apr 13, 2008
Messages
211
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

cant you put it in 1 code?
 
Initiate Mage
Joined
May 11, 2005
Messages
3
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Isn't the .cpp file to be edited MySQLM.cpp?

If it is, in your first post you've called it Mysql.cpp.

I don't seem to have a file called Mysql.cpp.
 
Experienced Elementalist
Joined
Apr 8, 2008
Messages
203
Reaction score
29
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Isn't the .cpp file to be edited MySQLM.cpp?

If it is, in your first post you've called it Mysql.cpp.

I don't seem to have a file called Mysql.cpp.


Thank you - I have corrected the first post.
 
Junior Spellweaver
Joined
Apr 8, 2008
Messages
146
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

works perfect thanks.
 
Junior Spellweaver
Joined
Apr 9, 2008
Messages
188
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Waiting for my little error to be resolved, Sir.
 
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
55
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Kryptical, you're supposed to delete the color=red part, lol.
 
Junior Spellweaver
Joined
Apr 9, 2008
Messages
188
Reaction score
0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]

Thats not the problem, I alraedy caught that b4 you guys >_<

Thats why I stated.. why put BB Codes in a CPP Code lawl.

I and a few people are having the fetching error, look in my Screen Shots
 
Back
Top