Jump to content

IIYAMA

Moderators
  • Posts

    6,086
  • Joined

  • Last visited

  • Days Won

    215

Everything posted by IIYAMA

  1. From where did you get this strange function? You sure it is in the code?
  2. Replace: text2 With(literally): ... All variables(text2).
  3. No you are right, misunderstanding. Caused of our solved problem.
  4. Mta team and moderators, they all can decompile your scripts, it never was save. Privacy doesn't exist any more in those times. That's all you have to know. Time to build my own compiler...
  5. I know it's already added but i cant use it i don't know why it's there like an item and i kent put on back Then you lied, didn't you
  6. Rewrite the code.... And reduce the ammount of database calls. Or buy a better server which can handle terible laggy gamemodes as that.
  7. refresh Refresh resource list to find new resources refreshall Refresh resources and restart any changed resources
  8. /refreshall fixes this, afaik.
  9. repost the code with debug lines in it and debug all variables in the code.
  10. Again a conclusion which could be solved by adding debugs. Your problems lays here: "setElementData ( col, "object", v )" Use setElementParent instead of setElementData. (when the parent get destroyed the child goes with it) Else yes you create double/tripple/quad colshapes when you restart the map.
  11. Debug your code manually, if you really want this to work. Unfortunately those who aren't doing that, are the ones who say that others are doing it wrong. While the real mistakes lies with them self, "forgetting to debug the code". Before you show us more of your "useless" conclusions. Visit this page: https://wiki.multitheftauto.com/wiki/Debugging It gives you more information about a way to find your problem. (THE BEST WAY) I/we will help you further after you debugged it and repost it.
  12. lol, restart the server, mta is disappointed in you.
  13. send him a pm... https://forum.multitheftauto.com/memberlist.php? ... ile&u=7476
  14. not sure, but these are the functions that can control it. https://wiki.multitheftauto.com/wiki/Se ... ntrolState https://wiki.multitheftauto.com/wiki/Ge ... ntrolState
  15. @GoldenEye Debug your code, manually. Here: https://wiki.multitheftauto.com/wiki/Debugging Afaik you would see this warning from the code which which is posted here: getElementModel: Expect element at argument one, got boolean/nil. (when you don't hit an element) Learn to debug your code or you will never be able to solve your problem.
  16. local count = 1 local dropCount = function () count = count - 0.1 end local dropCountTimer = setTimer(dropCount,50,10) Timers aren't smooth.
  17. Very nice, But can you post this at the resource page next time? That section is created for this kind of topic's.
  18. Insert the player as key: players[v]=true -- Insert players[v]=nil -- remove It it easier to manage. Require the pairs loop, to loop the list. (not the ipairs)
  19. IIYAMA

    Fixed now

    addEventHandler ("onPlayerLogin",root, function (thePreviousAccount, theCurrentAccount, autoLogin) local anterior = getAccountData (theCurrentAccount,"Last_Drift") local total = getAccountData (theCurrentAccount,"Total_Drift") local mejor = getAccountData (theCurrentAccount,"Best_Drift") setElementData(source, "Last Drift", anterior) setElementData(source, "Total Drift", total) setElementData(source, "Best Drift", mejor) end) addEventHandler ("onPlayerLogout", root, function() if not kickPlayer (source, nil, "Logging out is disallowed.") then -- if the player doesn't get kicked(no admin rights) setElementData(source, "Last Drift", false) setElementData(source, "Total Drift", false) setElementData(source, "Best Drift", false) end end) addEventHandler ("onPlayerQuit", root, function (quitType, reason, responsibleElement) local account = getPlayerAccount (source) if not isGuestAccount (account) then local anterior = getElementData(source, "Last Drift") local total = getElementData(source, "Total Drift") local mejor = getElementData(source, "Best Drift") setAccountData (account,"Last_Drift",anterior) setAccountData (account,"Total_Drift",total) setAccountData (account,"Best_Drift",mejor) end end)
  20. Elementdata uses in my experience circa 5x less data transfer. So yes it is far more optimal way for sharing it with all the clients, which is a big difference. It only isn't isn't manage able per client and it has very less options. It is just what you want to accomplish.
  21. IIYAMA

    Fixed now

    afaik, you haven't tried to store anything at the accounts, only set/get elementdata. Leave mySQL for later, no need to learn first the basic, like: local accountData = getAccountData (theCurrentAccount, "arizonadrift") if (accountData) then local getElementData(player, "Last Drift", anterior) local getElementData(player, "Total Drift", total) local getElementData(player, "Best Drift", mejor) setElementData(player, "Last Drift", anterior) setElementData(player, "Total Drift", total) setElementData(player, "Best Drift", mejor) end local anterior = getElementData(source, "Last Drift") local total = getElementData(source, "Total Drift") local mejor = getElementData(source, "Best Drift") setAccountData (theCurrentAccount,"Last_Drift") setAccountData (theCurrentAccount,"Total_Drift",total) setAccountData (theCurrentAccount,"Best_Drift",mejor) Repost when you are done fixing.
  22. Why don't you show us some screenshots?
  23. 1- Just recreate it after a while. 2- Set it to another position. 3- Set it to another dimension or interior.
×
×
  • Create New...