Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Sleeping :D

    I found the problem, it had a typo on the event name, instead of "onClientMarkerHit" it was "onClientMarkerhit", lowercause "h". Copy my code again.
  2. He made a typo, put guiGridListGetSelectedItem.
  3. Castillo

    Sleeping :D

    Have you set the script as client side in the meta.xml?
  4. Castillo

    Help me!

    That's a server side script. That script has a problem though, it'll create the text display and the text item every hour, instead of just creating it once and then setting the text.
  5. You must use: guiGridListGetSelectedItem guiGridListGetItemText
  6. Si, pero, donde esta definido 'text'?
  7. No, that makes no sense either.
  8. That's because guiGridListAddRow doesn't return an element, it returns the row number.
  9. That doesn't make any sense. You're trying to create a 3D sound to play for every player? if so, then you're doing it the wrong way. You must trigger a server side event, then trigger back to the client side to play the sound.
  10. Castillo

    Sleeping :D

    local mojmarker = createMarker ( -1984.6114501953, 248.5777130127, 34.171875, 'cylinder', 5, 0, 0, 190 ) function spanie ( player ) if ( player == localPlayer ) then if isPedInVehicle ( player ) then setElementFrozen ( getPedOccupiedVehicle ( player ), true ) else setElementFrozen ( player, true ) end setTimer ( function ( ) setElementFrozen ( player, false ) setElementFrozen ( getPedOccupiedVehicle ( player ), false ) end, 60000, 1 ) end end addEventHandler ( "onClientMarkerHit", mojmarker, spanie )
  11. There's no line 27 here, so, to which line 27 corresponds to in the code above?
  12. Castillo

    Imposter.

    Yeah, that's him, my country will always show as Argentina.
  13. function cuests(player,message,messageType,text) Ese es el problema, onPlayerChat solo tiene 2 argumentos: mensaje, tipoDeMensaje. Borra 'player' de ahi y tambien 'text'. Luego cambia 'player' por 'source' en las otras funciones ( getPlayerName, etc ).
  14. El comando "/ayuda" funciona? P.D: Es "help" no "jelp".
  15. Maybe you didn't properly setup the mysql server.
  16. Try changing "localhost" to "127.0.0.1".
  17. Castillo

    SOLVED

    You're welcome.
  18. Castillo

    help

    Use the functions posted by TAPL.
  19. Castillo

    SOLVED

    If you do what I said, then the camera will return to the normal view mode after 3 seconds.
  20. Castillo

    SOLVED

    Instead of using destroyElement, use: setCameraViewMode ( -1 )
  21. Use setElementData and in value put nil.
  22. It's a MTA bug, I used to have it on my server long ago, but it's fixed as far as I know, what server version are you using?
  23. Castillo

    Spawn GUI

    We don't accept requests here. You must use the event onClientGUIClick, with the following functions: guiGridListGetSelectedItem guiGridListGetItemText
  24. removeElementData is a server-side only function.
×
×
  • Create New...