Jump to content

#DaMiAnO

Members
  • Content Count

    80
  • Joined

  • Last visited

Community Reputation

0 Neutral

About #DaMiAnO

  • Rank
    Transformer
  • Birthday 25/07/1996
  1. Hi, me and my friend searching function for add new models and textures to MTA, or tutorial - How to add new models and textures, and how to give for that new ID.
  2. #DaMiAnO

    Login.

    Server: function onPlayerLoginToAccount(login, pass) local query = dbQuery(connect, "SELECT * FROM `accounts` WHERE `login` = '%s' AND `pass` = '%s'", login, pass) local acc = dbPoll(query, 0) if acc then outputChatBox("Zalogowano.", source ) else outputChatBox("#EE5555* #C0C0C0Podano zły #EE5555Login #C0C0C0lub #EE5555Hasło#C0C0C0!", source, 255, 255, 255, true ) triggerClientEvent("tryAgain", root ) end end addEvent("submitLogin", true) addEventHandler("submitLogin", root, onPlayerLoginToAccount)
  3. #DaMiAnO

    Login.

    Still got this, right? Yes.
  4. #DaMiAnO

    Login.

    Because, MySQL module by Ryden is easier for me.
  5. #DaMiAnO

    Login.

    @UP: Nope, I'm connected to MySQL. connect = mysql_connect("localhost", "root", "", "lh") if(connect) then outputServerLog("\n[MySQL] Pomyslnie polaczono z MySQL!") outputDebugString("Pomyslnie polaczono z MySQL!", 3, 0, 224, 0) else outputServerLog("\n[MySQL] Wystapil blad podczas laczenia z MySQL! Polaczenie zostalo zerwane...") outputDebugString("Wystapil blad podczas laczenia z MySQL! Polaczenie zostalo zerwane...", 3, 255, 0, 0) mysql_close(connect) end
  6. #DaMiAnO

    Login.

    Now: bad argument #1 to 'mysql_query' (mysqlHandler expected, got nil)
  7. #DaMiAnO

    Login.

    Bugged code: Client: function tryAgainLogin() guiSetVisible(loginButton, true) guiSetVisible(loginPassLabel, true) guiSetVisible(registerLabel, true) guiSetVisible(loginBox, true) guiSetVisible(passBox, true) guiSetVisible(keyImage, true) showCursor(true) guiSetInputEnabled(true) outputChatBox("Test4!", 255, 255, 255, true) addEventHandler("onClientRender", root, createDxOnLogin) end addEvent("tryAgain", true) addEventHandler("tryAgain", getResourceRootElement(getThisResource()), tryAgainLogin) function onPlayerLog
  8. #DaMiAnO

    Login.

    My current code: local screenWidth, screenHeight = guiGetScreenSize() function createDxOnLogin() dxDrawRectangle(769.0, 379.0, 211.0, 193.0, tocolor(255, 0, 0, 155), false) dxDrawText("Ping: "..tostring(getPlayerPing(getLocalPlayer())).."\n\n\n FPS: 0",778.0, 387.0, 970.0, 542.0, tocolor(255, 255, 255, 255), 1.0, "bankgothic", "left", "top", false, false, false) dxDrawRectangle(358.0, 379.0, 404.0, 193.0, tocolor(255, 192, 0, 155), false) dxDrawText("Rejestracja", 358.0, 380.0, 574.0, 418.0, tocolor(255, 255, 255, 255), 1.0, "bankgothic", "left", "top", false, false,
  9. #DaMiAnO

    Login.

    I conected it to MySQL.
  10. #DaMiAnO

    Login.

    When I left empty boxes, dx is hiding, but gui is showing. Error: bad argument #1 to 'mysql_query' (mysqlHandler expected, got nil)
  11. #DaMiAnO

    Login.

    When I left empty boxes, dx is hiding, but gui is showing.
  12. #DaMiAnO

    Login.

    Code is bugged, for example outputChatBox is not showing.
  13. #DaMiAnO

    Login.

    My code. Client: local screenWidth, screenHeight = guiGetScreenSize() local players = getElementsByType("player") function createDxOnLogin() dxDrawRectangle(769.0, 379.0, 211.0, 193.0, tocolor(255, 0, 0, 155), false) dxDrawText("Ping: "..tostring(getPlayerPing(getLocalPlayer())).."\n\n\n FPS: 0",778.0, 387.0, 970.0, 542.0, tocolor(255, 255, 255, 255), 1.0, "bankgothic", "left", "top", false, false, false) dxDrawRectangle(358.0, 379.0, 404.0, 193.0, tocolor(255, 192, 0, 155), false) dxDrawText("Rejestracja", 358.0, 380.0, 574.0, 418.0, tocolor(255, 255, 255, 255),
  14. #DaMiAnO

    Login.

    Working, but How to show Dx and GUI, when I wrote bad login or pass, and How to hide dx and gui, when i logged to account?
  15. #DaMiAnO

    Login.

    I edited this, and not working. : ((
×
×
  • Create New...