19.12.2010, 00:47
add this before mysql_connect
pawn Код:
mysql_init(LOG_ALL, 1);
mysql_init(LOG_ALL, 1);
|
add this before mysql_connect
pawn Код:
|
[Sat Dec 18 19:49:06 2010] ------------------------- [Sat Dec 18 19:49:06 2010] Logging Started [Sat Dec 18 19:49:06 2010] ------------------------- [Sat Dec 18 19:49:06 2010] Function: mysql_init executed with result: "0". [Sat Dec 18 19:49:06 2010] Error (1): Function: mysql_connect failed, mysql was not initialized on this handle.
|
try removing sendclient message and format and use printf
scm and format will slow it down even more, printf will slow it down by about 1ms, just minus the 1ms |
|
Nice ideas Jay_, I will definitely look into having custom query callbacks, doing it this way will be much easier than having all threaded queries sent to one callback.
|
|
Could anyone help me? i get the libmysqlclient_r.so.16 error im using serverffs and i dont know how to fix it cause everything is different on there. someone pls pm me or answer me in forum
![]() |
|
[MySQL] Error (0): Function: mysql_fetch_field failed, no field data. |
|
Just had this crash my server
You mentioned a while back that this was something you hadn't bug tested, you then fixed it and released it, another person posted saying they had the same problem. On the other hand, I know this can be caused by not freeing the result. Is there anyway of knowing what caused it? |
mysql_connect("hostname", "user", "password", "database", mysql_init(_, _));
mysql_close(_);
public OnGameModeExit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
OnplayerSqlUpdate(i);
}
KillTimer(gate1);
KillTimer(website);
KillTimer(synchup);
KillTimer(weathercheck);
KillTimer(timeud);
KillTimer(upss);
KillTimer(jailtimer);
KillTimer(checktralier);
KillTimer(gpsgps);
KillTimer(changeinterior);
KillTimer(checkrock);
KillTimer(playinghours);
KillTimer(playingdays);
KillTimer(playingmins);
KillTimer(batterytimer);
KillTimer(custompickupsupdate);
KillTimer(accounts);
KillTimer(autoweather);
// mysql_close(); //i commented it cause it was crashing on /gmx
GameModeExit();
return 1;
}
