diff --git a/404.html b/404.html index 8ea1496..07a7499 100644 --- a/404.html +++ b/404.html @@ -198,8 +198,8 @@
local id = exports.oxmysql:insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName, lastName}) -if id then - print(id) -end +CreateThread(function() + local id = exports.oxmysql:insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName, lastName}) + if id then + print(id) + end +end)
CreateThread(function() + local id = exports.oxmysql:insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName, lastName}) + if id then + print(id) + end +end)
const id = exports.oxmysql.insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName]) { -if (id) - console.log(id) +setImmediate(async () => { + const id = exports.oxmysql.insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName]) { + if (id) + console.log(id) +})
setImmediate(async () => { + const id = exports.oxmysql.insertSync('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName]) { + if (id) + console.log(id) +})
local result = exports.oxmysql:scalarSync('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}) -if result then - print(result.firstname) -end +CreateThread(function() + local result = exports.oxmysql:scalarSync('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}) + if result then + print(result.firstname) + end +end)
CreateThread(function() + local result = exports.oxmysql:scalarSync('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}) + if result then + print(result.firstname) + end +end)
const result = exports.oxmysql.scalarSync('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) { -if (result) - console.log(result.firstname) +setImmediate(async () => { + const result = await exports.oxmysql.scalarSync('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) { + if (result) + console.log(result.firstname) +})
setImmediate(async () => { + const result = await exports.oxmysql.scalarSync('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) { + if (result) + console.log(result.firstname) +})
local result = exports.oxmysql:singleSync('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}) -if result then - print(result.identifier, result.firstname, result.lastname) -end +CreateThread(function() + local result = exports.oxmysql:singleSync('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}) + if result then + print(result.identifier, result.firstname, result.lastname) + end +end)
CreateThread(function() + local result = exports.oxmysql:singleSync('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}) + if result then + print(result.identifier, result.firstname, result.lastname) + end +end)
const result = exports.oxmysql.singleSync('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) { -if (result) - console.log(result.identifier, result.firstname, result.lastname) +setImmediate(async () => { + const result = await exports.oxmysql.singleSync('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) { + if (result) + console.log(result.identifier, result.firstname, result.lastname) +})
setImmediate(async () => { + const result = await exports.oxmysql.singleSync('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) { + if (result) + console.log(result.identifier, result.firstname, result.lastname) +})
local id = exports.oxmysql:insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}) -if affectedRows then - print(affectedRows) -end +CreateThread(function() + local id = exports.oxmysql:insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}) + if affectedRows then + print(affectedRows) + end +end)
CreateThread(function() + local id = exports.oxmysql:insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}) + if affectedRows then + print(affectedRows) + end +end)
const id = exports.oxmysql.insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) { -if (affectedRows) - console.log(affectedRows) +setImmediate(async () => { + const id = exports.oxmysql.insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) { + if (affectedRows) + console.log(affectedRows) +})
setImmediate(async () => { + const id = exports.oxmysql.insertSync('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) { + if (affectedRows) + console.log(affectedRows) +})