Jump to content

Search the Community

Showing results for tags 'errormta'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Ola pessoal, sou novo no blog mas estou fazendo um server freeroam e queria uma ajuda para colocar um limite de contas registradas por serial ja tentei algumas funções mas ate agora nada, pfv me ajudem preciso muito dessa função funcionando no painel de login codigo server: addEvent("onRequestLogin",true) addEventHandler("onRequestLogin",resourceRoot, function(username,password,checksave) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) if ( account ~= false ) then logIn(client,account,password) triggerClientEvent (client,"onClientPlayerLogin",resourceRoot) if checksave and checksave == "1" then triggerClientEvent(client,"useLoginFile",resourceRoot,"set",username,password) else triggerClientEvent(client,"useLoginFile",resourceRoot,"remove",username,password) end else triggerClientEvent(client,"setNotification",resourceRoot,"Errado Nome De Usuário Ou Senha!") end else triggerClientEvent(client,"setNotification",resourceRoot,"Por Favor, Digite Sua Senha!") end else triggerClientEvent(client,"setNotification",resourceRoot,"Digite Seu Nome De Usuário!") end end ) addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",resourceRoot, function(username,password,repassword,serial) if #getAccountsBySerial(serial) == 2 then triggerClientEvent(client,"setNotification",resourceRoot,"Voce Ja Tem 2 Contas Registradas Nesse Serial!") else addAccount() if not (username == "") then if not (password == "") then if not (repassword == "") then if password == repassword then local account = getAccount (username) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then logIn(client,accountAdded,password) triggerClientEvent(client,"onClientPlayerLogin",resourceRoot) triggerClientEvent(client,"useLoginFile",resourceRoot,"set",username,password) outputChatBox("*Logado Com Sucesso! ( Nome de Usuário: #ee8a11" .. username .. " #FFFFFF| Senha: #ee8a11" .. password .. "#FFFFFF )",client,255,255,255,true) else triggerClientEvent(client,"setNotification",resourceRoot,"Por Favor, Escolha Uma Conta E/Ou Senha Diferente") end else triggerClientEvent(client,"setNotification",resourceRoot,"Uma Conta Com Esse Nome De Usuario Ja Existe!") end else triggerClientEvent(client,"setNotification",resourceRoot,"As Senhas Não Coincidem!") end else triggerClientEvent(client,"setNotification",resourceRoot,"Por Favor, Confirme Sua Senha!") end else triggerClientEvent(client,"setNotification",resourceRoot,"Por Favor, Insira Uma Senha Para Criar Sua Nova Conta!") end else triggerClientEvent(client,"setNotification",resourceRoot,"Por Favor, Insira Um Nome De Usuario Para Criar Sua Conta!") end end end ) Erro dado no console: https://imgur.com/a/JlBwzt9 PFV ME AJUDEM ESTOU CRIANDO UM SERVER DE FREEROAM!
×
×
  • Create New...