Jump to content

bmat

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by bmat

  1. bmat

    Compiling LUA

    Only client-side files could be compiled or server-side too?
  2. bmat

    Compiling LUA

    My antivirus blocked this file...
  3. bmat

    Compiling LUA

    How to compile .lua files? I want to protect my scripts.
  4. Please close this topic. And if you'll have got this error, please change resource name for example from "example resource" to "exampleresource". Name with space is invalid! Only without space!
  5. I've got a error in TXD Workshop. Could you make this for me? I'll send you original txd and file... Please... EDIT: I already made this. The worst was made image 32-bit Thanks for all. Pozdro
  6. So tell me what I should doing? What I may repair this file? I backuped this file, so I've got an original one. What I should doing to replace one image in this txd file? I used TXD Workshop.
  7. Yes, I added file to meta.xml and I check once more names files. It's look normally. I replace one image from txd file and now this file doesn't work. Is there important?
  8. Hello! I want to replace textures in my map. I've got a file oldgarage_sfse.txd and I want to include this one to my game. I've got a client-side code: function podmiana() --col1 = engineLoadCOL ( "txd/hubprops6_SFSe.col" ) --engineReplaceCOL ( col1, 11391 ) --col2 = engineLoadCOL ( "txd/hubprops1_SFS.col") --engineReplaceCOL ( col2, 11393 ) txd = engineLoadTXD ( "txd/oldgarage_sfse.txd") engineImportTXD ( txd, 11387 ) end addEventHandler("onClientResourceStart", getRootElement(), podmiana) addCommandHandler("podmiana", podmiana) But I've got a warning: Bad 'txd' pointer (...). This warning is in line: engineImportTXD ( txd, 11387 ) What I did wrong? Please, help me.
  9. Hello! I've got a code: function load() local xmlFile = xmlLoadFile("save/bmat.xml") if xmlFile then local node = xmlFindChild(xmlFile, "money", 0) local money = xmlNodeGetValue(node) givePlayerMoney(source, tonumber(money)) end end addEventHandler("onPlayerJoin", getRootElement(), load) It doesn't work. What is wrong? I want to give cash for player, which is loading from file. In file I've got: <user> <score>1</score> <money>10000</money> <skin>76</skin> </user>
  10. It works! Thanks, but when I click a window this one is closing. I want to close window only when I click a button x. Could you help me?
  11. Ok. But this code still doesn't work.
  12. Hello! I've got a problem. I making GUI now and this GUI doesn't work good. I want to make a button, which will close the window, but this not working good. This is code: function Internet() local screenWidth, screenHeight = guiGetScreenSize() browser = guiCreateWindow(50, 50, screenWidth-100, screenHeight-100, "Please Log In", false) guiSetVisible(browser, true) showCursor(true) guiSetInputEnabled(true) guiWindowSetMovable(browser, true) guiWindowSetSizable(browser, true) go = guiCreateButton(0.7, 0.1, 0.1, 0.05, "Go!", true) quit = guiCreateButton(0.9, 0.05, 0.03, 0.03, "x", true) end addCommandHandler("internet", Internet) addEventHandler("onClientGUIClick", quit, quitInternet) function quitInternet(button, state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(browser, false) showCursor(false) end end Please, help me. Sorry for my bad English.
×
×
  • Create New...