Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. 50p

    Variable issue.

    I get it now. It doesn't work because even if icon #1 worked fine your function will carry on executing and eventually it will reach line 54 which sets it back to 0. You should add "return;" to each "if" statement (NOT "else") and it should be fine since you don't want to check other bounding boxes once the mouse is inside of one of them.
  2. 50p

    Variable issue.

    We don't see the rest of the code. It's simply not working because the comparison is wrong. We don't know the coord of what you're comparing. You have to debug it yourself. Since you're using onClientRender, I'd use dxDrawText to show where the mouse is and where the intersecting rectangles are. Then you'll see why it doesn't work.
  3. Thanks, fixed it, also added middle-clicking tabs will perform the same action as right-click -> Close. I'll let you guys know about the new release.
  4. 1024 bytes = 1 kb 1024 kb = 1 mb Example: 131584 bytes / 1024 = 128.5 kb / 1024 = 0.125 mb
  5. @micheal1230, go to your client folder and find the client resources that you download from servers then delete the resource that plays the sound (so that you're like visiting your server for the first time) and see if it plays, if it does then you download the script quicker then server triggered the onPlayerJoin event which won't happen too often to other players if at all.
  6. I explained it long time ago, viewtopic.php?f=91&t=23895&p=289200#p289183 In addition, if you want the script to work properly use events. If you don't and the script doesn't work then ask yourself why and remind yourself I suggested to use events. The difference is that on(Client)ResourceStart get triggered only when all the scripts within the resource get executed. If you're calling a function from a different file and that file hasn't started yet then your script will fail because it doesn't know about existence of that function. This is why you should use the event to be safe.
  7. https://wiki.multitheftauto.com/wiki/OnChatMessage
  8. 1) You bind a key to F5 to call nil (not a value at all) 2) You use guiWindowSetSizable and guiSetVisible and use nil as a first parameter. 3) Main_WindowFunction is never called. Try not to execute any code outside functions. Do it in on(Client)ResourceStart instead if you want it to be executed at start.
  9. 1) How can't you close the file? I can close them perfectly fine. Explain the way to reproduce this bug. 2) I wanted to make sure .lua scripts work fine before I move on to .map files. I will also add a check box to Options window (once it's done) to let you show/hide map resources. 3) When you create a new file and want to save, it should ask you where you want to save it but I will add "Save as..." anyway. Thanks for the report!
  10. Edit: My beats are playing now It will play only if you have the resource downloaded and you join the server. Server will try to trigger client-side event even before the file is downloaded so the first time you join the server it will not play but the next time if the resource will not be changed then you will hear the sound.
  11. Yes, I left it for later but will add it in the next release. Does everything else work? Thanks for the comment.
  12. Why do you need to make it 3D anyway? It looks like a login script, so I guess, when you're logging in you don't move around. Why set its dimensions? It'll be played only for the person who logs in unless you trigger the event for everyone which would be pointless.
  13. The MTA functions don't get highlighter nor added to autocomplete box since not every .lua script is an MTA script but I'll probably add an option checkbox so that user can decide if he wants to these features for all .lua scripts even the ones opened separately. EDIT: Little update 0.3 (4722). Please report anything you think needs fixing. Thanks in advance.
  14. It seems that you opened a script with Ctrl+O or the button at the top? If so, then don't. Try to open a script from resource explorer instead. First select one of the loaded resources and then open one of Lua scripts. At least I'll know that I should fix the issue with opened files with Open command.
  15. If limit is SQLite limit then: http://sqlite.org/limits.html#max_length I don't think MTA has its own limit, if it does then it's unknown to me.
  16. 3) Was this script you checked opened with MTASE? Can you delete these 2 files and try MTASE again? I'm thinking that for some reason the luac5.1.exe does not get started. So, if you delete these 2 files and MTASE will not create them then it must be something wrong with running the compiler.
  17. 1) Can you try to runt MTASE as Administrator? 2) Does it create error.txt (delete it first)? 3) Check the temp folder (Windows 7: C:\Users\\AppData\Local\Temp Windows XP: C:\Documents and Settings\\Local Settings\Temp) if you can find test.lua and test.luac. This is important.
  18. Can you try to open a script from one of your resources? If I remember correctly, I do the checking on MTA resources files only (I'll fix that).
  19. Show your code which doesn't work first.
  20. OK, that error message was useful too. I've updated the package again. Please, once you're awake give it a go. Thanks for the reports.
  21. You have to close the function "pressed1" and "if" statements with an "end". Checked your code with MTASE, showed error message.
  22. Try to re-download. I just updated the build for 32bit OS since one of the libraries is 32bit only and it may have caused the issue. Let me know how it goes.
  23. Keep going 50p! I have problem when i click on the program this errors appears for me. EDIT : LUA sytax checker dosen't work! When do you get this error message? Just after you start? What OS are you running?
  24. You can use split: ... local forbiddenIDs = split( ids, "," ); for i, ID in ipairs( forbiddenIDs ) do if tonumber( ID ) == currentWeaponID then -- take his weapon end end ...
×
×
  • Create New...