Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. It won't work, obviously, since you didn't move it INSIDE the function, you put it just befoe the function is closed.
  2. local theTeam = "Team name" dxDrawText ( "Team: ".. theTeam )
  3. Define it as a variable.
  4. addEventHandler("onClientGUIClick",GUIEditor.button[1],closeHelpPage) Move that inside the function where you create the GUI code.
  5. That requires so you first convert it manually, then you must copy the link, and that's what he doesn't want to do.
  6. Use what Dealman mentioned above.
  7. Usa los textos server-side. https://wiki.multitheftauto.com/wiki/Se ... _functions Y la funcion: https://wiki.multitheftauto.com/wiki/Is ... rBoxActive
  8. That's because you forgot to specify the time argument at moveObject. function gateCreate ( ) gate1 = createObject ( 980, 135.19921875, 1943.19921875, 21.39999961853, 0, 0, 0 ) marker1 = createMarker ( 136, 1943.2998046875, 17.799999237061, 'cylinder', 25, 0, 0, 0, 0 ) end addEventHandler ( "onResourceStart", resourceRoot, gateCreate ) function gateMove ( hitElement ) if ( source == marker1 ) then moveObject ( gate1, 2000, 135.19999694824, 1943.1999511719, 27.200000762939 ) end end addEventHandler ( "onMarkerHit", getRootElement(), gateMove ) function gateBack ( hitElement ) if ( source == marker1 ) then moveObject ( gate1, 2000, 135.19921875, 1943.19921875, 21.39999961853 ) end end addEventHandler ( "onMarkerLeave", getRootElement(), gateBack )
  9. Puede que lo hiciera, pero mi codigo es mucho mas eficiente.
  10. Castillo

    MySQL problem

    It's used to escape MySQL reserved words.
  11. Castillo

    MySQL problem

    No, dbFree is used with dbQuery.
  12. Castillo

    MySQL problem

    dbQuery is used to obtain data, and dbExec is used for inserting, updating.
  13. Castillo

    MySQL problem

    dbExec doesn't return anything.
  14. Castillo

    MySQL problem

    What does 'save' return? also, use dbExec for that sort of queries.
  15. Castillo

    MySQL problem

    And this code is on the same lua file as your other script?
  16. Castillo

    MySQL problem

    Where is "connection" defined?
  17. Castillo

    gui

    But if he wants to use the GUI elements such as: buttons, edit-boxes, then I can assure you that it'll be hard to make them.
  18. That makes no sense. function cancelarEvento ( thePlayer ) outputChatBox ( "Você abandonou o evento!", thePlayer, 255, 0, 0, true ) setElementDimension ( thePlayer, 0 ) removeEventHandler ( "onPlayerSpawn", thePlayer, onSpawn ) end addCommandHandler ( "abandonar", cancelarEvento )
  19. local accounts = getAccounts ( ) table.sort ( accounts, function (a, b ) return ( tonumber ( getAccountData ( a, "cash" ) ) or 0 ) + ( tonumber ( getAccountData ( b, "cash" ) ) or 0 ) end ) Creo que eso deberia funcionar.
  20. The camera won't work because you are using onPlayerJoin which is a server-side only event.
  21. Castillo

    gui

    Yeah, but that's not GUI, that would be DirectX Drawing.
×
×
  • Create New...