- Joined
- Apr 3, 2008
- Messages
- 290
- Reaction score
- 0
Re: [Release] Error checking Routine for Mysql [*UPDATED*]
ahh oh nooo ill look into my files i guess O_O
ahh oh nooo ill look into my files i guess O_O
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! string mr = string((char*)mrow[0]);
istringstream buffer(mr);
buffer >> ret;
}
}
mysql_free_result(mres);
return ret;
}
1>.\MySQLM.cpp(185) : error C2337: 'color' : attribute not found
Why putting BB code in CPP Code lol
dayum.... its called a leech protection lol
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;
}
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'
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.