Jump to content

mysql connection fail


golanu21

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...