Jump to content

Recommended Posts

Posted

Eventual ca sugestie (spatiu desi ma indoiesc ca poate face o diferenta)

new MySQL: sqldb;

Eventual daca e sa deschizi a_mysql.inc si sa verifici daca mysql_connect este acelasi cu

native MySQL:mysql_connect(const host[], const user[], const password[], const database[], MySQLOpt:option_id = MySQLOpt:0);

Pentru ca problema imi sugereaza faptul ca acel sqldb nu are tag corect sau mysql_connect nu il are.

Posted (edited)

Nu, nu.. Creaza o variabila globala adica la inceputul gm-ului, codul trebuie sa arate de forma asta.
 

new MySQL: sql_variable;


stock mysql_connection()
{
    sql_variable = mysql_connect("127.0.0.1", "user", "pass", "database");
    if(mysql_errno(sql_variable) != 1)
    {
        
        print("Mysql Connection succesfuly");
    }
}

public OnGameModeInit()
{
    mysql_connection();
}

 

Edited by Venombrk
  • 1 month later...

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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.