Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Oh well, I've never seen any problem with XML.
  2. Mr.Pres[T]ege's code should work fine, unless there's something I didn't see.
  3. Yes, actually they're different but they both are going to do the same.
  4. That is exactly the same.
  5. Anderl

    Tables

    I recommend you using iteration statements to find the length of an array, since the symbol '#' does not count anything else than number indexes. Just in case you don't know what an iteration statement is: it's a for loop.
  6. What are you talking about? I've never seen any problems with XML except the big file size when saving too much information. And what DDoS has to do with XML?
  7. I understand you wasted time working on that (I don't think you wasted so much on that), but that's a very basic thing - it's not worth any money.
  8. Both last answers are the same as Castro's code.
  9. There is no need for declaring a table variable with the name 'wdwWelcome'.
  10. I'll show you an example of how the server and client code should be: Server: function DxMsgSr ( message, player, ... ) if ( triggerClientEvent ( player, "DxMsgClient", player, message, arg ) ) then return true end return false end Client: addEvent ( "DxMsgClient", true ); addEventHandler ( "DxMsgClient", root, function ( message, color ) --color[1] = R; --color[2] = G; --color[3] = B; --the above written is to help you to know how to find the RGB color given by the scripter, that means index '1' in 'color' array is the R color and so on --here draw your text with the help above ^ --the text will ONLY be drawn to the player you passed to "DxMsgSr" in server end )
  11. Compiling won't help much. Files will still be downloaded and are able to be decompiled.
  12. Multi Theft Auto isn't a company. And would you mind making a video in english? Almost nobody knows arabic.
  13. Anderl

    getUnbanTime

    Read my answer above, I've read the wiki page again and saw that actually that function already returns the time remaining ( that's what I understood ).
  14. Anderl

    getUnbanTime

    Actually, nevermind. getUnbanTime already returns the time remaining till unban ( not sure, I could not understand much from the wiki's page, it's not very well explained ), you don't need all these things.
  15. Anderl

    getUnbanTime

    Should not it be actual seconds since 1970 minus seconds remaining till unban?
  16. Some servers don't use default MTA ban system, so that would not totally work. Actually, most servers use their own ban systems.
  17. When you try to output a table it does show its ID, you must call a member (something that is inside the table): local myTable = {}; --now here we're going to try to output the table outputChatBox ( myTable ); -- it's going to output its ID --now we'll add something to the table myTable[1] = "Lua is so awesome."; -- this is going to set the value of the index (call it 'slot', if that's easier for you to understand) 1 to the string "Lua is so awesome." --okay, let's output the value of the index 1 outputChatBox ( myTable[1] ); -- it's going to output "Lua is so awesome." Hope you got it
  18. Anderl

    Low Fps Plz help me

    It isn't any good. It's worse than the other one.
  19. "houses" is already the root node in the XML file, you don't need to search for it. I would use MySQL or SQLite for that, though.
×
×
  • Create New...