golanu21 Posted August 7, 2013 Share Posted August 7, 2013 function connect(res) connection = mysql_connect("localhost", "root", "", "zombiesv", 3306) if (not connection) then if (res == getThisResource()) then cancelEvent(true, "Nu te poti conecta la baza de date.") end return nil end return nil end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), connect, false) [center]2: attempt to call global mysql_connect <a nil value>[/center] Link to comment
xXMADEXx Posted August 7, 2013 Share Posted August 7, 2013 use the default functions, not the module functions: dbConnect Link to comment
golanu21 Posted August 7, 2013 Author Share Posted August 7, 2013 i need to make it with module function... Link to comment
xXMADEXx Posted August 7, 2013 Share Posted August 7, 2013 i need to make it with module function... Trying to use Valhalla? Link to comment
golanu21 Posted August 7, 2013 Author Share Posted August 7, 2013 nope , valhalla is so bugged, i can't use it Link to comment
xXMADEXx Posted August 7, 2013 Share Posted August 7, 2013 Well, the MySQL module only works on 32-bit operating systems. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now