Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. You can use ";" in Lua, but it's just a matter of "style". If you want to use it, use it; if not, then just don't use it - it's optional.
  2. Anderl

    Hosting

    @xdstep, please stop recommending/posting things if you have no idea about the area. 1MBps is VERY LITTLE for multiple servers, I'd recommend you getting a decent server with at least 100MBps (1GBps recommended if going to host many servers), much bandwidth and a big hard disk (I'm talking about space, not disk size). And I'd not get the first/cheapest server you find on internet, because most of the times cheap doesn't mean good.
  3. Use OO, it will surely decrease the file size, and try not to repeat things that you can put in a single function.
  4. Why don't you like? I don't see any problem with that.
  5. This has been discussed many times already, there is already a version of Multi Theft Auto for Grand Theft Auto IV from what I could understand, but it hasn't been released and most likely will never be due to unsufficient amount of developers to maintain both Multi Theft Auto San Andreas and IV.
  6. Your code contains unnecessary events.
  7. I would use onClientRender/getTickCount instead of timers. Also, if the XML files are long, I recommend using any other thing to log the chat. I suggest you to spend some time re-working your code.
  8. Anderl

    how

    Use getTickCount and some basic math to convert milliseconds to minutes.
  9. How outputChatBox will fix any thing -_-" ??!!! If a 'script' node doesn't have type defined, it is defaulted to server so there is no need to add " type='server' ", neither it's going to fix anything.
  10. Improving the code itself will help, avoid using much timers and anything that uses bandwidth (events, remote calls, element data) and mainly XML, unless it's really needed. They're small files, but they're much - it ends up doing the same AFAIK. I would recommend using SQLite or MySQL (if really needed).
  11. Anderl

    Newbie!!

    Hey, and welcome Just.. in case you don't know (because you said "the best mtasa community out there"), this is the official Multi Theft Auto's website so it obviously must be the best
  12. Anderl

    [PHP]Query

    Should not be hard to write the path you just wrote instead of '%PATH_TO_GAMEQ%'. Can you talk in a better English or explain yourself better? I didn't get that.
  13. Anderl

    Server list spam

    What do you mean? Are you talking about domains? Show an example, something we can get an idea of what you're talking about because I didn't get that..
  14. And what do you mean by code organized? The code is organized, there is not much more you could do on it (note that I said not much more, not nothing).
  15. That depends on what you use to show the window, etc. But serials aren't used for such things, it just makes no sense to use them.
  16. And don't forget to use getPlayerSerial ( if you want the GUI to open only for you ! ) You don't need any function to do that.
  17. Well, then learn the language: http://lua.org The wiki wasn't made to be copy+pasted. What you're copying is the function syntax which has COMPLETELY NOTHING to do.
  18. I'm not sure if attachElements function supports weapon elements (most likely not, since it's not in the supported element types list in the wiki's page), however you can try: create a weapon and use attachElements using the element returned by the function createWeapon.
  19. You can do that using bindKey, using key state "both".
  20. There is fireWeapon for that, it just needs to be called multiple times because it only shots one bullet per call.
  21. Then next time post the code you tried.
  22. I'm still awaiting the author to explain me that thing of the extra parameters...
×
×
  • Create New...