09.02.2012, 17:03
mysql_ping crashing the server at OnGameModeInit. I removed the function and worked fine:
Код:
[16:00:42] [debug] Server crashed while executing mode_r7.amx [16:00:42] [debug] Backtrace (most recent call first): [16:00:42] [debug] #0 native mysql_ping() from mysql.dll [16:00:42] [debug] #1 public Server_DatabaseConnect()+0x210 at mode_r7.pwn:369 [16:00:42] [debug] #2 public zcmd_OnGameModeInit()+0xb8 at mode_r7.pwn:88 [16:00:42] [debug] #3 native CallLocalFunction() from samp-server.exe [16:00:42] [debug] #4 public Server_DatabaseConnect()+0x210 at mode_r7.pwn:369 [16:00:42] [debug] #5 public zcmd_OnGameModeInit()+0xb8 at mode_r7.pwn:88
pawn Код:
//printf("Conexгo com a database realizada com sucesso!\nPing: %d", mysql_ping(MYSQL_GAME_CONNECTION));