Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Tekken

    dbConnect

    Try like this: db = "theDatabaseName" host = "theHostName" user = "theUsername" pass = "thePassword" port = -- Ex: 2456 db = dbConnect( "mysql", "dbname="..db..";host="..host..";port="..port, user, pass, "share=1" )
  2. Just add an elemend data as a verification like this: function check() local caracter = getElementData(source, "Is.Player.Have.Caracter") if (caracter == true) then --Do something. else --Send him to caracter choser. end end addEventHandler("EventName", root, check) You will also need to set that element data as true after player chose his caracter
  3. What this mean: Please type in the first letters of this sentence.:? This is the 2nd question from register page and I don't understaind. Yhanks.
  4. Iti trebuie doar playSound si un pic de Lua
  5. Are you sute this Admin Panel kick's you out ? If yes then look in console or in logs to see what's the problem. Edit: I just check'ed the code and this resource doesn't have any kick functions at all. It must be from other resources you have.
  6. Try this: function FunctionName() bindKey(source, "2", "down", cas) end addEventHandler("onPlayerJoin", root, FunctionName)
  7. Hi, As you can see in the title I want to make a DX inventory. The inventory will be like 2 diferent parts and each will have his items(in my case will be images), and I don't know how to start cause I am not so good at scripting, specialy in DX. Like this: Minute 19:30 What I need ? -A tutorial or some functions I can use or maybe an example I don't know something to begin. Hope you get what I am saying, and thanks in advance!
  8. Tekken

    logIn

    Oh, thanks guys
  9. Tekken

    logIn

    Why i get this error? Error: WARNING: login\login_s.lua:6: Bad argument @ 'logIn' [Expected account at argument 2, got string 'username'] Code: Server: addEvent("loginPlayer", true) addEventHandler("loginPlayer", getRootElement(), function(username,password) local acc = getAccount(username,password) if acc then logIn(source, username, password) else outputChatBox("[Login] Check username and password!", source, 255, 0, 0, true) return end end) Client: addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == login_but) then username = guiGetText(the_user) password = guiGetText(the_pass) if username ~= "" and password ~= "" then triggerServerEvent("loginPlayer", localPlayer, username, password) else outputChatBox("[Login] Please complet username and password!", 255, 0, 0) return end end end)
  10. A few more days/months: https://forum.multitheftauto.com/viewtopic.php?f=108&t=88188
  11. What are you tolking about? This is a RPG database..
  12. This is from Nerd Gaming, you can find the original one here. And I still don't understaind you cause this database is MySQL not SQLite.
  13. Tekken

    GUI problem

    Use this guiGetScreenSize.
  14. Tekken

    SQL base

    Post the code.
  15. Tekken

    SQL base

    You can setup an MySQL database or you can setup an SQLite database. Details: viewtopic.php?f=148&t=38203
  16. i can do moree :3 Did you read my post ?
  17. Sorry, but I don't work on this project no more. There is another project going on: https://forum.multitheftauto.com/viewtopic.php?f=108&t=88188 And you realize that you just changed size? You don't "scripted" anything, you just edited the original one.. And also I wanted not classic MTA GUI.
  18. Nice. But, make it smaller and try to add some guns and medics, will be beter. And use: [list ] [*]Text [/ list] Will result: Text
  19. Tekken

    triggring..

    Why don't you make it server side ? setPlayerMoney is a shared function so can be used server and also client. function pro2() if source == GUIEditor.button[2] then setPlayerMoney(localPlayer, 5000000) end end addEventHandler("onClientGUIClick", root, pro2) And also are you sure you want to use setPlayerMoney not givePlayerMoney ?
  20. Wrong board, ask here: https://forum.multitheftauto.com/viewforum.php?f=91
×
×
  • Create New...