Gameserver's source By D3V!L

04/19/2014 12:08 ramblox#46
Okey.
04/19/2014 13:42 szymek111#47
This commented code you need to replace with :

Code:
 Conn = mysql_init(NULL);
 
 //Database db;
 Startup startUp;

 if (!mysql_real_connect(Conn, (char*)s_Database->Host.c_str(), (char*)s_Database->User.c_str(), (char*)s_Database->Pass.c_str(), (char*)s_Database->Name.c_str(), 3306, NULL, 0))
 {
  std::cout << mysql_error(Conn) << std::endl;
  getchar();
  exit(1);
 }
04/19/2014 16:03 ramblox#48
thx szymek it's work
04/20/2014 17:58 gaetano1291#49
I have problem when I debug.
Here is the screen: [Only registered and activated users can see links. Click Here To Register...]
04/20/2014 18:23 szymek111#50
Quote:
Originally Posted by gaetano1291 View Post
I have problem when I debug.
Here is the screen: [Only registered and activated users can see links. Click Here To Register...]
Change debug to release

Zmień debug na release.
04/21/2014 09:42 gaetano1291#51
Thank you
04/25/2014 18:02 gaetano1291#52
I get this problem when I try to enter one of the two channels.
[Only registered and activated users can see links. Click Here To Register...]
04/26/2014 00:53 urp21#53
Quote:
Originally Posted by gaetano1291 View Post
I get this problem when I try to enter one of the two channels.
[Only registered and activated users can see links. Click Here To Register...]
Check if the database has any empty value, that may cause an error.
Sorry for my bad english...
04/26/2014 10:58 szymek111#54
Quote:
Originally Posted by urp21 View Post
Check if the database has any empty value, that may cause an error.
Sorry for my bad english...

I gave you answer in page 5 with code .:p
04/26/2014 15:24 urp21#55
Quote:
Originally Posted by szymek111 View Post
I gave you answer in page 5 with code .:p
Yeah xD, didn't see.
05/20/2014 19:16 kanam99#56
Hi. I was trying to compile this code, but I've got an error: [Only registered and activated users can see links. Click Here To Register...]
In the right window you can see my "include" folder that i chose as my additional library folder in the linking properties. I use VS Express 2013 and MySQL Connector C 6.1.3. I can't find anything about mysql.lib on Google. Can you help me? And also, did I paste szymek's code properly [Only registered and activated users can see links. Click Here To Register...]
?
05/20/2014 21:03 szymek111#57
libmysql.lib not mysql.lib . Change it .
05/20/2014 21:35 kanam99#58
Szymek, rozumiem, że jesteś z Polski. Powiedz, gdzie to zmienić? W #pragma comment mam dane libmysql.lib, a kompilator nadal domaga się mysql.lib. Co robić? I czy wkleiłem twój kod poprawnie?
05/20/2014 21:57 IceTrailer#59
Quote:
Originally Posted by kanam99 View Post
Szymek, rozumiem, że jesteś z Polski. Powiedz, gdzie to zmienić? W #pragma comment mam dane libmysql.lib, a kompilator nadal domaga się mysql.lib. Co robić? I czy wkleiłem twój kod poprawnie?
Please in English. This is an German/English board.
05/20/2014 22:00 kanam99#60
Quote:
Originally Posted by sk8ter08 View Post
Please in English. This is an German/English board.
Sorry, I wrote: "Szymek, I see that you're from Poland. Tell me, where I have to change it? In #pragma comment I've got libmysql.lib, but compilator still request mysql.lib. What should I do? And, am I paste your code correctly?