Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Duda

    Mira, cuando creas una funcion y queres usarla en otro resource, tenes que poner el export, pero si la queres usar en ese resource nada mas, no necesitas exportarla.
  2. for index, player in pairs(getElementsByType("player")) do local team = getPlayerTeam(player) if not team then teamName = "None" else teamName = getTeamName(team) end --gridlist rows should go here end
  3. Turismo, I wouldn't call that fair, this topic could help someone with a similar problem in future.
  4. Meh, ok, I corrected my post . Thanks for the correction .
  5. Oh, my bad, it was the opposite of what I said .
  6. I think in MTA 1.1 you can replace them, but you can't add new anims. https://wiki.multitheftauto.com/wiki/EngineLoadIFP https://wiki.multitheftauto.com/wiki/EngineUnloadIFP
  7. Castillo

    vehramps

    If i'm right, this script doesn't require these triggers to be used, maybe just take them off.
  8. That script is server-side. P.S: You can know if it's server or client because of the example color (when is client side, it'll be RED, else yellow).
  9. onClientRender se usa para las funciones DX drawing y muchas cosas mas, no puedes usar las funciones DX drawing afuera de onClientRender. https://wiki.multitheftauto.com/wiki/Cli ... _functions onClientPreRender se puede usar para crear camaras (tipo primera person, etc). Y claro, para muchas cosas mas, no solo para camaras.
  10. Maybe this could do the job: https://community.multitheftauto.com/index.php?p= ... ls&id=2074
  11. Castillo

    F1

    You can maybe disable them, and then trigger a event to the server to see if he's admin and if so, enable the buttons.
  12. Zombies by slothman: https://community.multitheftauto.com/index.php?p= ... ls&id=2668 I don't think he has made any change on it, and if he'd, I don't think Slothman gave him permission to upload it.
  13. Castillo

    Help again?

    Uhm, restart the resource(s)?
  14. Castillo

    Help again?

    CRC mismatch occurs when either: The server files have been changed, but the resource has not been restarted/refreshed, An external http server is being used and the files are not synchronized. You can read about these errors here: https://wiki.multitheftauto.com/wiki/Kno ... mismatch_2
  15. Mira, si es tu propio servidor, para registrarte necesitas tener el recurso llamado "admin" iniciado (lo podes iniciar desde la consola tipeando: start admin), y luego en el juego escribes /register nombre contraseña.
  16. Castillo

    CJ bug.

    Yeah, that's a bug that happends with other skins than CJ, only some times, I wonder when it'll get fixed.
  17. function playerloginsystem ( ) local namelogin = getPlayerName ( source ) local checklogin = executeSQLSelect ( "playersave", "playerdb", "playerdb = '" .. namelogin .. "'" ) if ( type( checklogin ) == "table" and #checklogin == 0 ) or not checklogin then -- see if any data was found at all local userforregister = getPlayerName ( source ) executeSQLInsert ( "playersave", "'" .. userforregister .. "', '2', '2', '2', '2', 'Register', '2'" ) --add the first data in the user table setElementData ( source, "Status", "Register") else -- Data from db to scoreboard for register user readFromDB = executeSQLQuery ( "SELECT * FROM playersave WHERE playerdb=?", namelogin ) setElementData ( source, "Kills", readFromDB[1].Killsdb ) setElementData ( source, "Death", readFromDB[1].deathdb ) setElementData ( source, "Fun Points", readFromDB[1].funpoints ) setElementData ( source, "Money", readFromDB[1].money ) setElementData ( source, "Status", readFromDB[1].statusdb ) outputChatBox ("All your data are load! Have fun!", source) end end addEventHandler ( "onPlayerLogin", getRootElement(), playerloginsystem ) Try that.
  18. guieditor is a resource just like any other, type /start guieditor and done. WARNING: DON'T PUT THE RESOURCE AS A .ZIP, MUST BE A FOLDER ONLY.
  19. Nice job, I have no suggestions for now, but maybe in future I'll . P.S: I love your small message haha.
  20. I don't want to be rude... but, it explains how to use it. Usage: - to start editing type /guied or press shift + g, do it again to stop - to edit a GUI element right click on it - the parent of the element you are creating will be the element you right clicked on For example: right clicking a window and selecting "Create Button" will create a button within the window
  21. Kenix, his code is right as far as I can see, the table does his work and the loop too.
  22. Si, eso es verdad jaja, pero bueh, el lo hacia asi, y yo no lo cambie .
×
×
  • Create New...