• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

DE Datenbank Frage

Nisutec

Donor
is awesome!
Wie kann ich überprüfen ob eine uuid nicht in einer Datenbank ist. Dieser code zeigt mir nur was an wenn die SQL Quarry was finden kann.
Kann man sich denn Inhalt von res irgendwie ausgeben so das man das verwerten kann.

JavaScript:
if (dbc) dbc.query("SELECT * FROM users WHERE uuid = '%n'".replace(/%n/g, ev.client.uid()), function(err, res) {
                    if (!err) {
                        engine.log('nice')
                         res.forEach(function(row) {
                             engine.log(helpers.toString(row.uuid));
                             engine.log(helpers.toString(row.rank));
                             user = helpers.toString(row.uuid)
                             rank = helpers.toString(row.rank)
                             engine.log('LOG ' + user)
                             if (user == '') {
                                 engine.log('nooo')
                             }
                         });
                    }
                });
 
Last edited:
Thread starter Similar threads Forum Replies Date
Z Script Development 3
Z Script Development 2
Z Script Development 3
Z Script Development 2
Z Script Development 1

Similar threads

Top