|
You last visited: Today at 16:48
Advertisement
Database Error when disconnecting game
Discussion on Database Error when disconnecting game within the Flyff Private Server forum part of the Flyff category.
06/19/2018, 09:50
|
#1
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
Database Error when disconnecting game
Hey Elitepvpers,
I'm currently getting an error when logging out and I don't know why. Server is working perfectly, but not saving in database anymore.
Error log:
Code:
2018/ 6/19 09:45:31
SavePlayer(Minotaurr) - Exec RETURN FALSE, ThreadID : 30784
CQuery log:
Code:
2018/06/19 09:45:31
query:{call CHARACTER_STR('U1','0000001','01','',?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, 0, 0, 0,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
SQLSTATE:42000 error:[Microsoft][SQL Server Native Client 11.0][SQL Server]Error converting data type varchar to int.
Anyone who knows? I've tried several things to fix the problem, but without result.
Thanks!
|
|
|
06/19/2018, 12:45
|
#2
|
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
|
That's the problem of using ? on long stored procedures, when you have an error like that takes lot of time to find it.
Compare the stored procedure CHARACTER_STR to match with the BindParameter on CDbManager::SavePlayer, the order must be same.
|
|
|
06/19/2018, 15:53
|
#3
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
Quote:
Originally Posted by alfredico
" the order must be same "
|
Omg it works :O Never thought of that, thank you !
Changed:
Code:
#ifdef __USER_OWN_TITLE
bOK[++j] = qry->BindParameter(++i, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARCHAR, MAX_CUSTOM_TITLE, 0, pMover->m_szOwnTitle, 0, &cbLen);
#endif //__USER_OWN_TITLE
#ifdef __HIDE_CS
int nHideCoat = 0;
for (int z = 0; z < 5; ++z)
{
int c = (pMover->m_abHideCoat[z] ? 1 : 0);
nHideCoat |= (c << z);
}
bOK[++j] = qry->BindParameter(++i, SQL_PARAM_INPUT, SQL_C_LONG, SQL_INTEGER, 0, 0, &nHideCoat, 0, 0);
#endif // __HIDE_CS
TO
Code:
#ifdef __HIDE_CS
int nHideCoat = 0;
for (int z = 0; z < 5; ++z)
{
int c = (pMover->m_abHideCoat[z] ? 1 : 0);
nHideCoat |= (c << z);
}
bOK[++j] = qry->BindParameter(++i, SQL_PARAM_INPUT, SQL_C_LONG, SQL_INTEGER, 0, 0, &nHideCoat, 0, 0);
#endif // __HIDE_CS
#ifdef __USER_OWN_TITLE
bOK[++j] = qry->BindParameter(++i, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARCHAR, MAX_CUSTOM_TITLE, 0, pMover->m_szOwnTitle, 0, &cbLen);
#endif //__USER_OWN_TITLE
~ Edit, Closerequest
|
|
|
 |
Similar Threads
|
Disconnecting after selecting Character Error 0
08/23/2011 - Shaiya Private Server - 4 Replies
I can get a different server running just fine, but when i try to log into this one it works until i click "Enter World" then it hits me with a error 0 and Disconnects me. Below are my Log files and a Screenshot of the Error:
http://hacker431.webs.com/83128844.png
PS Game
PS_LOGIN
|
4story EG Disconnecting form serveur to do network error.
01/31/2011 - 4Story - 3 Replies
Why, when I try to log on 4story this does not answer for 30 seconds and gives me this message "Disconnecting form to do network server error ."???
|
Disconnecting from server due to network error.
01/29/2011 - 4Story - 11 Replies
So habe mal ein Thema erstellt weil ich zu dem oben genannten problem noch nix gefunden habe.
Hoffe mir kann jemand weiterhelfen.
"Disconnecting from server due to network error."?
kann mir keiner zu dieser Fehlermedlung was sagen?
"Disconnecting from server due to network error."?
sie tauchte bei mir bem dem login auf.
|
All times are GMT +1. The time now is 16:49.
|
|