Jump to content

Marshell

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Marshell

  • Rank
    Square

Recent Profile Visitors

145 profile views
  1. Hello! I want to get an advice from you and a problem solution. Thanks in advance. Bad argument @ "logIn" [Expected account at argument 2, got boolean] the line is : if (logIn(player, account, password) == true) then the script is : function passwordHandler(player, oldpassword, newpassword) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("You must be logged in to change your password.", player) return end local playerName = getPlayerName(player) local password_check = getAccount(play
  2. How can I do this ? can you tell me, please?
  3. Hello! Bad argument @ passwordVerify [ Expected string at argument 2, got boolean] Thanks in advance. local MINIMUM_PASSWORD_LENGTH = 6 local function isPasswordValid(password) return string.len(password) >= MINIMUM_PASSWORD_LENGTH end -- create an account addEvent('auth:register-attempt', true) addEventHandler('auth:register-attempt', root, function (username, password) -- check if an account with that username already exists if getAccount(username) then return outputChatBox('An account already exists wit
  4. Hello !! Can you help me, please ? I've got this problem : Bad argument @ "passwordVerify" [ Expected string at argument 2, got boolean] Thanks in advance! local MINIMUM_PASSWORD_LENGTH = 6 local function isPasswordValid(password) return string.len(password) >= MINIMUM_PASSWORD_LENGTH end addCommandHandler("register", function(player, command, username, password) if not username or not password then return outputChatBox("Syntax: /" .. command .. " [nume utilizator] [ parola ]", player, 255, 205, 201) end
  5. Hello! Would you like to help me ? I've got this problem : dbExec failed; (1) near "x": syntax error. THANKS! dbExec failed; (1) near "x": syntax error. [DUP x2] function createVehicleForPlayer(player, command, model) local db = exports.db:getConnection() local x, y, z = getElementPosition(player) local rotX, rotY, rotZ = getElementRotation(player) rotZ = rotZ * 90 y = y + 5 dbExec(db, "INSERT INTO vehicles(mo
  6. Oke, thanks, but, the other problems ? How can I solve them ?
  7. Problems : > Acces denied @ "addAccount" the line is : local account ="" addAccount(username, hashedPassword) "" and the 2nd problem is : Bad argument "setAccountData [ Expected account at argument 1, got nil] and the line is : >> setAccountData(account, "hashed_password", hashedPassword) ( it's under the first line mentioned). Other problem is when a players tries to login .. the line is : local hashedPassword = getAccountData(account, "hashed_password") -- and the problem : "Bad argument getAccountData[ Expected account at argument 1, got boolean" and "Bad argument @
  8. I got another problem... " dbExec failed; (1) near "x" : syntax error dbExec(db, "UPDATE vehicles SET x=?, y=?, z=? WHERE id = ?", x, y, z, id) <<this is the line
  9. I also got this error : attempt to index global "vehicle" ( a nil value) at this line : setElementData(vehicleObject, "id", vehicle.id)
  10. Hello, people! Forgive me if I did something bad/wrong, but, I am following tutorials to make scripts. So.. as u read, in the title, I have this problem "Bad argument #1 to "pairs"(table expected, got boolean)" (line 28); and the other problem : dbPoll failed, near "FROM" : syntax error.(line 26) function createVehicleForPlayer(player, command, model) local db = exports.db:getConnection() local x, y, z = getElementPosition(player) y = y + 5 dbExec(db, "INSERT INTO vehicles(model, x, y, z) VALUES(?, ?, ?, ?)", model, x, y, z) local vehicleObject = createVe
×
×
  • Create New...