Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Anderl

    [HELP] chat

    He doesn't want to send message to players in a specific team either. Re-read what the OP asked for.
  2. Because you have to learn and do it by yourself. We aren't here for doing things for you, but to help you solving issues in your scripts.
  3. Anderl

    Problem

    And what would you use table.sort for? I don't see why is it needed.
  4. Anderl

    Problem

    If I do that, it means it is still inside the table. I probally confused you with "vehicleInTheWorld", it was just a testhing to help with removing those vehicles. If I set the Vehicle to nil, will it then be out of the table? It will still be there. But it will ever return false if you try to use it since its value is false. Cannot see the rest today, I'll look at what you wrote tomorrow.
  5. Anderl

    [HELP] chat

    That isn't right, LuCaS. He wants to send the chat message ONLY to players in a determined space, not to everybody.
  6. Anderl

    Problem

    Since "vehicleInTheWorld" uses elements as indexes, you can't use "table.remove". You should set "vehicle" var index in "vehicleInTheWorld" to false instead. Another thing I noticed is that you first check in a if statement if you find "vehicle" element index in "weaponObjectsVeh" but later you create a new index using numbers as indexes and element in value which is wrong for two reasons: 1. Your array must only be in one way. 2. Already told you that you can't use "#" for getting length of a non number-indexed table.
  7. Anderl

    Problem

    Exactly, SOME_VALUE is whatever you want. You can always use the other option ( element as index and boolean value but you won't be able to get array's length with "#" ).
  8. Anderl

    Problem

    Simply pass the element like if you passed an integer: myTable[ p_Element ] = true; -- you can change 'true' by any other thing as long as it is not null --or myTable[ SOME_VALUE ] = p_Element; What do you mean?
  9. I don't think you can check for hand contact with elements in MTA, if there is, it's too hard for a beginner ( unless you already have a good base in maths and even so you would need lil LUA knowledge ).
  10. Anderl

    Problem

    You can put elements in arrays, they will ever be elements. Just tried right now and "#" will only work in number-indexed arrays.
  11. Do you even have permissions to re-open that clan, which wasn't yours?
  12. I didn't say that. I explained what should you do and what functions you needed for that, just re-read the topic.
  13. "Ghost Race Driver" - what's it? Your own gamemode? Any default gamemode? If that's MTA default race gamemode, there's a command already built-in. Not sure but I guess it's "gm" ( means ghost mode ).
  14. Ahh.. I thought if you added 'root' instead of another argument, it'd be outputed to everyone. Anyway, thanks for notifying me. You can't simply pass arguments that aren't there, there is no parameter to pass elements which the message will be sent to in the client function.
  15. For music files, get the file's content in the server side and send it to the client, there you should create a new file with same name and with the content you passed to the client. As for image files, get the file's content, send it to the client and use dxCreateTexture. Just note you will not be able to load the pictures in GUI elements neither DDS, BMP and TGA files. For that, you'll need to do the same as I already said above ( music files procedure ).
  16. Anderl

    ENB series

    Does GTA:SA single player work?
  17. A web panel? :L What is that, I feel embarassed to ask. Servers control panel, you better ask the guy in his topic so we end the off-topic
  18. Read Lua files in server, send it to client and use loadstring.
  19. Ah, it isn't him. I thought he was other guy that asked for a web panel.
  20. Anderl

    Help me please

    You should download and run them, not save them somewhere. Read here what is a device driver.
  21. You could create a download manager which would load any resource instantly ( you could do something different for known types of files and simply read unknown type files and create new ones with same name and content in client ). Use: loadstring --for loading Lua files dxCreateTexture -- for loading image files And you could read a XML file ( map files ) in the server and create objects and other things there.
  22. Ainda não percebi para que você quer a função executeCommandHandler, DNL291. O OP pode simplesmente usar bindKey diretamente com a função que abre a janela.
  23. Pretty sure you already have a topic for the same thing.
  24. Anderl

    Gang Wars

    In my opinion, you should think and do original things by yourself. If you add the things people ask you to do it won't be any funny since it has only things people wants and know that are there, and not things they don't know that are there and they still need to discover.
  25. No one would pay to an unknown guy either.
×
×
  • Create New...