Jump to content

[REZOLVAT] Problema salvare


Dueno
 Share

Recommended Posts

Username: MihaiArabu
Problema întălnită: Nu mi se salveaza niste lucruri in baza de date.
Detalii despre problemă: Nu mi se salveaza drugs/mats si money in baza de date.
Ce ai încercat să faci înainte să postezi?: Sa o rezolv.
Cod sursă (recomandat pastebin.com) : Comanda [/gdeposit] - https://pastebin.com/Cr9FgEyx | Comanda [/myraport] ( ceva basic ) - https://pastebin.com/t374GXyt.
Alte detalii: Re

Edited by MihaiArabu

DRmdfgp.png

Link to comment
Share on other sites

Arata-ne mysql_log.

EDIT: 1.Nu inteleg de ce le arati tuturor jucatorilor raportul cand un jucator foloseste comanda.

2. Chestia asta nu are niciun sens.


            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE `MoneyDeposit`='%d' AND `name`='%s'", PlayerInfo[i][pMoneyDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");
            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE `MatsDeposit`='%d' AND `name`='%s'", PlayerInfo[i][pMatsDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");
            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE 'DrugsDeposit' ='%d' AND name = '%s'", PlayerInfo[i][pDrugsDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Acum 17 minute, Matt a spus:

Arata-ne mysql_log.

EDIT: 1.Nu inteleg de ce le arati tuturor jucatorilor raportul cand un jucator foloseste comanda.

2. Chestia asta nu are niciun sens.



            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE `MoneyDeposit`='%d' AND `name`='%s'", PlayerInfo[i][pMoneyDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");
            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE `MatsDeposit`='%d' AND `name`='%s'", PlayerInfo[i][pMatsDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");
            mysql_format(SQL, string, sizeof(string), "SELECT * FROM users WHERE 'DrugsDeposit' ='%d' AND name = '%s'", PlayerInfo[i][pDrugsDeposit], PlayerInfo[i][pNormalName]);
            mysql_tquery(SQL,string,"","");

 

Nu imi arata nimic in mysql_log.

DRmdfgp.png

Link to comment
Share on other sites

Acum 1 minut, MihaiArabu a spus:

Edit: Am rezolvat cu salvarea in baza de date dar trebuie sa dau relog sa apara in [/myraport].

Probabil pentru ca nu ai actualizat variabilele folosite in comanda atunci cand le-ai modificat.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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