Jump to content
SkyzzO007

Problema Baza de Date

Recommended Posts

Username: SkyzzO
Problema întălnită: Cand vreau sa salvez in baza de date ( tunning, loc de parcare, culoare , neon, vip name) In fisierul MYSQL_LOG imi apar unele erori.
Detalii despre problemă: Cand ii fac un tuning la masina sau ceva in baza de date nu se salveaza si imi aopare asta in MYSQL_LOG

[16:19:38] [ERROR] "mysql_query" - invalid connection handle (ID = 32)
[16:19:41] [ERROR] "mysql_format" - invalid connection handle (ID = 32)
[16:19:41] [ERROR] "mysql_tquery" - invalid connection handle (ID = 32)


Ce ai încercat să faci înainte să postezi?: Am incercat sa schimb varianta de MYSQL 
Cod sursă (recomandat pastebin.com) :

            SCM(playerid, COLOR_GOLD, "Ai cumparat neon din (/shop) pentru 45 puncte premium!");
            PlayerInfo[playerid][pPremiumPoints] -= 45;
            Update(playerid, pPremiumPointsx);
            format(query, sizeof(query), "UPDATE `cars` SET `Neon`='%d' WHERE `ID`='%d'", CarInfo[carid][cNeon], carid);
            mysql_query(SQL, query);    

Alte detalii: Ce as putea face ca sa mearga totul perfect?

Share this post


Link to post
Share on other sites
mysql_format(SQL, query, sizeof query , "UPDATE `cars` SET `Neon` = '%d' WHERE `ID`='%d'", CarInfo[carid][cNeon], carid);
mysql_tquery(SQL, query, "", ""); 

 

Share this post


Link to post
Share on other sites

Si asa trebuie sa schimb peste tot unde nu salveaza bine?

Share this post


Link to post
Share on other sites
Acum 8 minute, SkyzzO007 a spus:

Si asa trebuie sa schimb peste tot unde nu salveaza bine?

Edit: Nu merge am aceleasi erori + una in plus [ ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')

Share this post


Link to post
Share on other sites

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