19.12.2010, 00:12
I'm having a bit of a problem.
The plugin was working, but it suddenly stopped working for no apparent reason.
mysql_log.txt:
Part of OnGameModeInit() in my gamemode that handles the MySQL initalization:
(blah blah, I didn't blank out the db details, whatever. It's just my local development server.)
I've also bolded the line where for whatever reason, the PAWN compiler gives me a "tag mismatch" warning.
Didn't know if this should've been posted here or in the scripting section, so I posted it here.
The plugin was working, but it suddenly stopped working for no apparent reason.
mysql_log.txt:
Код:
[Sat Dec 18 19:08:40 2010] Logging Started [Sat Dec 18 19:08:40 2010] ------------------------- [Sat Dec 18 19:08:40 2010] Function: mysql_init executed with result: "0". [Sat Dec 18 19:08:40 2010] Error (1): Function: mysql_connect failed, mysql was not initialized on this handle.
Код:
mysql_init(1); SetGameModeText("XXXXXXXXXX"); // mysql if(mysql_connect("127.0.0.1", "root", "", "samp", 1)) { dbConnSuccess = 1; } else { dbConnSuccess = 0; }
I've also bolded the line where for whatever reason, the PAWN compiler gives me a "tag mismatch" warning.
Didn't know if this should've been posted here or in the scripting section, so I posted it here.