How do I fix this ive tried about everything i know to do
AssertionError [ERR_ASSERTION]: unexpected PromiseRejectEvent
[ERROR] [MySQL] [police-system-1.2] An error happens on MySQL for query "[object
Object]": ER_BAD_DB_ERROR: Unknown database 'fxserver'
Error: (node:3892) UnhandledPromiseRejectionWarning: Error: ER_BAD_DB_ERROR: Unk
nown database 'fxserver'
at Handshake.Sequence._packetToError (mysql-async.js:244:14)
at Handshake.ErrorPacket (mysql-async.js:12834:18)
at Protocol._parsePacket (mysql-async.js:5941:23)
at Parser.write (mysql-async.js:6198:12)
at Protocol.write (mysql-async.js:5701:16)
at Socket.<anonymous> (mysql-async.js:693:28)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
--------------------
at Protocol._enqueue (mysql-async.js:5807:48)
at Protocol.handshake (mysql-async.js:5714:23)
at PoolConnection.connect (mysql-async.js:720:18)
at Pool.getConnection (mysql-async.js:4577:16)
at Pool.query (mysql-async.js:4731:8)
at Promise (mysql-async.js:4970:12)
at new Promise (<anonymous>)
at execute (mysql-async.js:4967:26)
at Object.global.exports [as callback] (mysql-async.js:4993:5)
at citizen:/scripting/v8/main.js:87:41
Error: (node:3892) UnhandledPromiseRejectionWarning: Unhandled promise rejection
. This error originated either by throwing inside of an async function without a
catch block, or by rejecting a promise which was not handled with .catch(). (re
jection id: 75)
Uncaught AssertionError [ERR_ASSERTION]: unexpected PromiseRejectEvent
internal/errors.js(102,11): AssertionError
assert.js(42,9): innerFail
assert.js(56,3): fail
internal/process/promises.js(27,25):
mysql-async.js(4973,13): db.query
mysql-async.js(280,24): Sequence.end
mysql-async.js(4734,13):
mysql-async.js(4587,9): onConnect
mysql-async.js(280,24): Sequence.end
mysql-async.js(12836,8): Handshake.ErrorPacket
[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM police WHER
E identifier = @identifier {@identifier=steam:1100001071593f2}”: Unknown datab
ase ‘fxserver’
I have tried everything with this script and i still cant get it to work with zap, i get no errors, i can make the data base work, i join the game it makes the table and adds all the identifiers and ranks i change them to 2 and still nothing happens in-game. any suggestions ?
try out the scrip and loving it, one thing that i suggest is that the spikes disappear once there a run over to avoid other car AKA police who are chase said subject from run over the spikes
hmm, I added this to my server and SQL, didnt get any errors, changed my rank to “2,” and F5 doesn’t do anything. I know I am putting the rank on my steam HEX. I even tried changing the keybind in the client.lua, and changing my database, with no avail. Weird thing is that I’m not getting any errors. Anyone else having this issue?
Thanks