Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. I am using dbConnect function and since I bought VPS server I can't connect to mysql with this functions. I have tryed to connect with php mysql and is working fine with same information. Did anyone had same problem with that ?
  2. try adding for index, value in ipairs( getElementsByType("object", resourceRoot) ) do setElementDimension(value, 3) end at the end of the code
  3. You can't unless you use multiple computers or modify your scoreboard EDIT: I saw somewhere that you can open multiple mtas but don't know if that is possible
  4. you can get position on your resolution and then make it for all resolutions like this x, y = guiGetScreenSize() px = (x/yourRes)*yourPosition py = (y/yourRes)*yourPosition dxDrawRectangle(px, py, 60, 60, tocolor(0, 0, 0, 255), false)
  5. You can't because in client sided getPlayerWatedLevel() can get wanted level of localPlayer only!
  6. I would personaly recommend this scripter. I know him for like 2 years now and I can assure he makes good quality scripts.
  7. I would prefer Linux Ubuntu 32 or 64 bit. I think that you should have at least 512mb of ram for 32 slot server!
  8. mta-paradise is open source, so you can modify it.
  9. Wei

    MTA does not open

    MTA does not start when I open it ? I think it might be because I am using windows 8.. http://pastebin.mtasa.com/861929797
  10. How can I trigger a event from another resource ? I have it like this ? -- Fixed
  11. Thank you all! I will do solidsnakes method.
  12. Hi how to make script undecompliable ? So it will show errors in decomplier?
  13. Wei

    Easing DX Window

    https://wiki.multitheftauto.com/wiki/DxDrawAnimWindow You have a sample here
  14. Wei

    Moving Chat

    you must use dxDraws or labels and onClientCharacter and/or onClientKey It's a bit hard to make your own chatbox...
  15. Wei

    Moving Chat

    You can close chat like --client showChat(false) -- server showChat(player, false) and you must stop player if he is trying to chat addEventHandler("onPlayerChat", root, function() cancelEvent() end)
  16. you can use setAccountData or executeSqlQuery or MySQL or XML functions everything is saved in internal.db
  17. <script src="" type="client" [color=#FF4000]cache="false"[/color]/> You must add that to meta.xml to client scripts. (Only what is in red)
  18. if(string.match("%W")) then --Improper characters detected. end
  19. do you have mysql = exports.mysql at the top of the code ?
  20. I didn't realy understand you. You mean like compling resources ? You have many of compliers here: https://forum.multitheftauto.com/viewtopic.php?f=91&t=31891 You can also trigger code from server to client. And you can also remove scripts when player has load it
  21. @Krzo you can only use guiSetVisible(GUIEditor.window[1], boolean) since parent of all guielements is window
  22. You need to make your own download resource then
  23. Wei

    Label

    He means that I think Edit you can also try scripting it like this function string.insert(value, insert, place) if place == nil then place = string.len(value)+1 end return string.sub(value, 1,place-1) .. string.gsub(string.sub(value, place,place), string.sub(value, place,place), insert) .. string.sub(value, place, string.len(value)) end local characterFitLabel = 15 -- Example that 15 characters fit label local labeltext = "Example of text 123" label = guiCreateLabel(20, 20, 50, 305, labeltext, false) if (#labeltext >= characterFitLabel) then labeltext = string.insert( labeltext, "\n", characterFitLabel ) guiSetText(label, labeltext) end This is just an example, I don't know if it will work
×
×
  • Create New...