(I AM SPEAKING AS THE OWNER OF THE COMMUNITY!)
I am trying to make a cash and bank script but for some reason i cannot figure this out no matter what i try I have looked at over 60 different links and still an find this out please could someone tell me what I am doing wrong?
[I am trying to get the money of the the person that is joining the server]
SERVER FILE
AddEventHandler("playerConnecting", function()
local player = source
local playerName = GetPlayerName(player)
local identifier = GetPlayerIdentifiers(player)[1]
local query = MySQL.Async.fetchAll("SELECT cash, bank FROM users WHERE identifier = '"..identifier.."'",{['@identifier'] = identifier})
end)
error I keep getting