Jump to content

AnonXVI

Members
  • Posts

    3
  • Joined

  • Last visited

About AnonXVI

  • Birthday 01/01/1991

Details

  • Location
    Lithuania

AnonXVI's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. So I played some with OOP, and it seems more better for me personally. Decided to use that. Made simple SQL resource, which works. But I guess I will have to re-code it to procedural, because there is no effective way to use export SQL functions in OOP to others resources. But it's no problem, because it's small code, so procedural works. And nothing is lost, because learned big OOP basics, and can read code easier in mind. About 1 folder or smaller ones: Decided to use loads of smaller ones, because of features you and Dealman mentioned. But there is one thing going around my mind about it, what stuff should I put in "gamemode" resource? Like, there is loads of "scripts" login, jobs and stuff, so what is left to put in "gamemode" resource? Nothing? Doesn't seem that it needs to be one big handler, because there would be nothing to handle in it. Thanks for answering to third question so detailed, it helped me a lot. Got better logic idea how stuff works. So I guess it's just a personal matter, and best is the one, you like more. Sorry for my grammar mistakes, living in a country where english is not the main language. I'm new to this stuff, so I can be wrong about it too. Thanks for so detailed answers, helped me a lot.
  2. Thanks for detailed answer. Is there a serious reason which made you not use OOP on Lua? Or just habit and etc.? So long story short, one big resource has more downsides than lots of smalls, and lots of smalls downsides are personal and minor. Well I'm okay with lots of smalls then, just wanted to make sure if it won't affect performance much and stuff. So only OOP question left. Thanks! Well, I'm flexible person, so I can get around with most stuff which is better to use, but true.
  3. Hello, So I'm pretty new to scripting and stuff, and I'm doing some random stuff around MTA scripting. I'm Thinking about making a RP gamemode for practice, and thought that it should be in OOP(Because more organized and stuff). But I can't find information about using OOP when you're seperating everything to different resources. Like not whole 1 gamemode resource, but loads of seperate script resources, like login job1 job2 bank sql and etc. Question 1. Is it posible to use OOP in situation like this? If yes, should I? Or should I just use Procedural Function Programming? Question 2. Should I consider about not using seperate resources, and using 1 whole gamemode resource? If yes, why? What benefits would it give over seperate resources? It would remove me ability to update little stuff without stopping server play. (Answer only if I should use OOP)Question 3. Could I get some useful LUA OOP Tips, Tricks, Tutorials, Links, and/or Information? I don't have any experience with any language's OOP. And Very Thanks In Advance!
×
×
  • Create New...