Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    login panel

    You're welcome.
  2. You can try with this function: https://wiki.multitheftauto.com/wiki/Ge ... ntPosition and this one to get all components: https://wiki.multitheftauto.com/wiki/Ge ... Components
  3. Castillo

    login panel

    addEventHandler("onClientGUIClick", bejelentkezes, clientSubmitLogin, false) Move that to the function where you create the button.
  4. Castillo

    login panel

    logIn(client, username, password) That line is wrong, logIn function requires an account, not username. logIn(client, account, password)
  5. Castillo

    login panel

    Have you added the resource to the acl.xml, group "Admin"?
  6. Castillo

    login panel

    Change this line: triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) to: triggerServerEvent ( "submitLogin", localPlayer, username, password )
  7. What do you mean by that?
  8. You can't really make it, since you can't get the password with scripts, you must convert the table with some program to a mysql table, then import it.
  9. Well, you must define some variables and change them inside onClientPreRender, then set position with setCameraMatrix.
  10. That's because executeSQLQuery uses the "registry.db" database.
  11. Castillo

    String

    The script is added to acl.xml?
  12. To make that you must use: setCameraMatrix onClientPreRender
  13. addEventHandler("onPlayerJoin", getRootElement(), showLoginPanel) That's your problem, "onPlayerJoin" is a server side event, you must use "onClientResourceStart". addEventHandler ( "onClientResourceStart", resourceRoot, showLoginPanel )
  14. Castillo

    String

    function autoLogin ( ) local cSerial = getPlayerSerial ( source ) local pass = sha256 ( cSerial ) local account = getAccount ( tostring ( cSerial ), pass ) if ( account ) then logIn ( source, account, pass ) outputChatBox ( "Logged in successfully", source, 255, 255, 255 ) else local account = addAccount ( tostring ( cSerial ), pass ) if ( account ) then logIn ( source, account, pass ) outputChatBox ( "Registered and logged in successfully", source, 255, 255, 255 ) else outputChatBox ( "Failed to register!", source ) end end end addEventHandler ( "onPlayerJoin", root, autoLogin ) Use that and see if it outputs: "Failed to register!".
  15. 1: Post the script, we can't help you if you don't. 2: Make sure on the meta.xml, that the script containing the GUI is set as type="client". 3: Open up debugscript and look for errors.
  16. Castillo

    Help script

    That doesn't make any sense, you'll have to edit the freeroam script.
  17. Well, if you have no resources using it, then is not a bug, is just empty.
  18. I don't understand what do you want to do.
  19. Wrong, that makes no sense, you are creating 2 markers, one without any argument at all.
  20. Castillo

    String

    function autoLogin ( ) local cSerial = getPlayerSerial ( source ) local pass = sha256 ( cSerial ) local account = getAccount ( tostring ( cSerial ), pass ) if ( account ) then logIn ( source, account, pass ) outputChatBox ( "Logged in successfully", source, 255, 255, 255 ) else local account = addAccount ( tostring ( cSerial ), pass ) logIn ( source, account, pass ) outputChatBox ( "Registered and logged in successfully", source, 255, 255, 255 ) end end addEventHandler ( "onPlayerJoin", root, autoLogin ) logIn requires an account, not an username.
  21. Advertencia: Si cambias el modo de codificacion a "UTF-8", no podras compilar el script, asi que tenes que usar "UTF-8 without BOM".
  22. Creaste una funcion y nunca la ejecutas, nunca va a crearse el ped.
  23. Y como ejecutas esa funcion?
×
×
  • Create New...