//get your host, user, pass, db, port here
i set them i removed to post it thats all ..
bzombies is my database on mysql
This is the log with developer 1
so i addedCode:File Handles: ---------------------- 81953 files in iwd files ------- Game Initialization ------- gamename: Call of Duty 2 gamedate: Jun 23 2006 ---------------------- Game: G_SetupWeaponDef ---------------------- ******* script compile error ******* uninitialised variable 'bzombies': (file 'maps/mp/gametypes/_mysql.gsc', line 9) level.JH_mysql = initMySQL(localhost, chosen, e***, BZombies, 3306); * ************************************ Sys_Error: Error during initialization: script compile error (see console for details) > [PLUGIN UNLOADED] chosen@ubuntu:~/cod2$
and now i get a new errorCode:init() { host = "lo****ost"; user = "c****n"; pass = "******"; db = "B****bies"; port = "3306"; //get your host, user, pass, db, port here level.JH_mysql = mysql_reuse_connection(); if(!isDefined(level.JH_mysql)) level.JH_mysql = initMySQL(host, user, pass, db, port); initAsyncMySQL(host, user, pass, db, port); }
i think im making progress
Finally its now working with a big thanks to @IzNoGod,Code:******* script compile error ******* unknown function: (file 'maps/mp/gametypes/_mysql.gsc', line 109) result = mysql_async_getResultAndFree(list[i]); * ************************************
My problem was not using the correct functions to correspond with the libcod mysql i was using
so if anyone has the same or similar issue check your functions you can use from you compiled libcod



Reply With Quote