Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Anything is possible if you know how to do it. I would suggest to define your timer, so then you can use isTimer to know if the timer is still running, and if it is, you can reset it and increase the value of the "experience" variable with the value sent from the server side.
  2. I don't understand the problem. Is it that "position" is not returning 1?
  3. I believe that "group" is a reserved word. http://dev.mysql.com/doc/refman/5.0/en/ ... words.html http://www.sqlite.org/lang_keywords.html
  4. Well, I understand it perfectly. It says "the type of source code", so, if his script works both client and server, then he can simply use "shared" instead of writting type="client" and type="server" in two separate lines.
  5. warpPedIntoVehicle (player, autob) "player" is not defined anywhere in your script, which is what causes the error. Look careful to your function arguments, there's the answer.
  6. Castillo

    delAccount

    Yes, it does remove all the account data linked to the account.
  7. Castillo

    Bug

    That means the player has no team, therefore, getPlayersInTeam won't work.
  8. Castillo

    [HELP]

    Well, that means that there is no value set in the table "playerSkin" for that player.
  9. Next time you have a doubt such as this, you should check on the wiki for the answer first: https://wiki.multitheftauto.com/wiki/Meta.xml
  10. That could cause problem, since you forgot to set to false the "getPropagated" argument from addEventHandler, everytime you click a GUI element, the chat will hide.
  11. No tiene sentido lo que que hiciste. Se usa asi: engineSetModelLODDistance ( object, 100 )
  12. You can't execute a MTA hardcoded command, so you have to use the function: showCursor And, if you mean the bunny jump cheat from single player, then you must use the function: setWorldSpecialPropertyEnabled
  13. Eso es porque no tenes la module de MySQL. https://wiki.multitheftauto.com/wiki/Mysql Igual, te recomiendo usar las funciones de MySQL del MTA, que son: dbConnect dbQuery dbExec dbPoll dbFree
  14. function onTestExp(experience) Remove "experience" from there and change "tonumber" to "tostring".
  15. No, there isn't. But you can easily make one using onClientRender and getTickCount.
  16. Castillo

    GRID

    https://wiki.multitheftauto.com/wiki/Gu ... lectedItem It has an example which you can use.
  17. It could be that the speedometer is in the wrong position due to resolution differences.
  18. Castillo

    GRID

    You must use the onClientGUIClick event and the function guiGridListGetSelectedItem to get the grid list selected item.
  19. What do you mean by "i can only see the speedometer"?
  20. Castillo

    Functions

    Have you changed anything on it? if so, then post the new script.
  21. You should attach the sound to the vehicle instead of the local player.
  22. Example: local experience = 0 -- Define global variable Now, in your trigger, you are sending the experience value, so, you must add the argument in the client side function: addEvent ( "onTestExp", true ) addEventHandler ( "onTestExp", root, function ( expe ) -- Here you are defining an argument, in this case, the value is what is sent from the server side. end ) So, all what you have to do next is set the "experience" variable value, which you can do it like this: experience = expe After that, you add the event handler to render it, and in dxDrawText you use "experience" variable instead of "X".
  23. You can't pass arguments using addEventHandler, that means that "X" is nil. What yo ucan do is: Define a global variable using the data sent from the server side.
  24. Castillo

    [HELP]

    Any errors in the debugscript?
×
×
  • Create New...