Jump to content

warning 213: tag mismatch Warning!


Sile Bandit

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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