Jump to content

Keilbritschn

Members
  • Posts

    91
  • Joined

  • Last visited

Everything posted by Keilbritschn

  1. Hey Guys, i have a little question. How can i use the Tessellation-Shader with a dxDrawText? I've changed the code, to test it: Settings = {} Settings.var = {} local scrX,scrY = guiGetScreenSize() addEventHandler( "onClientResourceStart", resourceRoot, function() flagShader = dxCreateShader("flag.fx") flagTexture = dxCreateTexture("flag-pic.jpg") dxSetShaderValue( flagShader, "sFlagTexture", flagTexture ) end ) addEventHandler( "onClientRender", root, function() dxSetShaderTessellation( flagShader, 16, 1 ) dxSetShaderTransform( flagShader ,20, 10, 10 ,0, 0, 0 ,true ,0, 0 ,true ) dxDrawImage( 50, 59, 519, 340, flagShader, 0, 0, 0, tocolor(255,255,255,255) ) end ) Well, the question is, how can i make a dxCreateTexture with the dxDrawText
  2. Well i belive you, that you made them, but they does look like the one of FFS. Change at least the style of the Drawings ...
  3. Well i know now why it sayed Bad Argument. I found in this Forum a other thread: https://forum.multitheftauto.com/viewtopic.php?f=91&t=57981 it says to use: md5(md5(salt):lower()..md5(password):lower()):lower() ive got some little problems with salt ... but i fixed it. Anyway thanks a lot for the support. For those Guys who have the same Problem, i hope that can help you: local password = "asdf" setElementData(source, "salt_temp", data["members_pass_salt"]) local salt = getElementData(source, "salt_temp") passwordTEXThashed = md5(md5(salt):lower()..md5(password):lower()):lower()
  4. nope doesnt work. It says bad argument. Or is there a way to change the hashingway of ip.board?
  5. simply .... beautiful ... hahahaha. It looks so ... ugly.
  6. how can you model these polygons ingame`?!??!?!? how is that even possible
  7. Hey Guys, i know that i can hash passwords with md5, but ip.board wants a salt-hash too how you can see: $hash = md5( md5( $salt ) . md5( $password ) ); Or isnt salt a hash? Pls help me
  8. Thanks a lot man, it runs . But isn't there a way with getElementData or something like that?
  9. hey guys, how can i receive the position of an dxDrawImage?
  10. Hey guys, i have a problem. I want, that the interpolateBetween counts if i press F6, but it counts if the Resource starts. local screenW,screenH = guiGetScreenSize() local state = "Login" local phase = 0 local lastTick = getTickCount() function setSettings( s, p ) state = s or 'Login' phase = p or 0 lastTick = getTickCount() end function getProgress( addtick ) local now = getTickCount() local elapsedTime = now - lastTick local duration = lastTick+addtick - lastTick local progress = elapsedTime / duration return progress end function drawInterface () local InterfaceBreite = interpolateBetween(0,0,0,250,250,250,getProgress(500),"InOutQuad") dxDrawRectangle ( 0, 0, InterfaceBreite, screenH, tocolor ( 23, 23, 23, 255 ) ) showChat(false) end function drawInterfaceRender ( ) addEventHandler("onClientRender", getRootElement(), drawInterface) end bindKey("F6","down",drawInterfaceRender)
  11. do you mean something like dbQuery(handler, "SELECT * FROM phpbb_users WHERE `username` = ?", username)
  12. Hey Guys, i have a little Problem. I dont know why, but i cant use the MTA-MySQl Modul. I installed it but doesnt work. So i tried to use the already included mysql functions. i connected with my MySQl Server via dbConnect but i want to check a string. I want to check the string password, if its the same with the one in my database, but how?
  13. hey Guys, i have a question. How can I copy a file from server to client? I dont understand how i can make it with the filefunctions.
  14. Depends on what key you wish to bind, or what's already binded. I mean the key "down arrow" i hope its the right name . What ever, I want to press so long the mousebutton, so long how i slide the gridlist
  15. hmm thy, but does it include, if i press with the left cursorbutton down and slide it, like on ffs?
  16. Hey, i have a question. You know, on ffs the 9gag gui. You have to scroll OR you have to press down with your cursor und slide it up, to scroll down. How can i make the same?
  17. Thats amazing . Wish you good luck. Cant wait ^^
  18. Have again a Problem ... I created now via XAMPP a MySQL Server. The Server is running and i uploaded the user.sql and i entered in the script: dbConnect("mysql", "dbname=user;host=localhost", "username=Elias", "password=passwort") but it says now: ERROR: [gameplay]\mysqlloginpanel\login_serverlua:9: dbConnect failed; Can't connect to MySQL server on 'localhost' (10061) I asked google already but didn't found something
  19. Have again a Problem ... I created now via XAMPP a MySQL Server. The Server is running and i uploaded the user.sql and i entered in the script: dbConnect("mysql", "dbname=user;host=localhost", "username=Elias", "password=passwort") but it says now: ERROR: [gameplay]\mysqlloginpanel\login_serverlua:9: dbConnect failed; Can't connect to MySQL server on 'localhost' (10061) I asked google already but didn't found something
×
×
  • Create New...