Jump to content

sanyisasha

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by sanyisasha

  1. I know, but your problem is you don't know what is mysql, don't know how to use. Then where you get this error? From a downloaded script? Yeah, sure. Btw the "solution" is just make the error gone, but it's not solution for the problem: you have to create a table in database before you can use it. And create it in the mysql connection script is bad, because next time you want to make a script what use database, you'll get this error again, and you'll do the wrong solution... again. And so on.
  2. Didn't said download all in the default mta downloader He make a progressbar somewhere, and if a player want to download in yours way, can disable it. But think a bit: you go, play something, and in the "background" the game download all files. Next what you will say: But man, it will cause lag. Solution: pause download when a match start.
  3. Hmmm.. Just one word: :O YOU (not you, i mean mta, and yeah, it's two word). Thanks Pirulax, i search only in fileRename. Solution: <right name="general.ModifyOtherObjects.packages" access="true" />
  4. Why? Better wait always minutes before game? (Meaning with low internet players, not everybody have gigabit internet )
  5. I'm not stuppid. And the problem is not can't call global getHandler
  6. Its only happens when trying to rename resource's meta with database class in it. Read the full error message, not common access denied
  7. Read again the problem. The script is working, only with database occoure the error
  8. As i said, already tryed. I think the real problem is i want to modify a meta. Xml where is an active db connection. Maybe i should try disconnect/destroy befor do it.
  9. Why don't download all map datas in once? Maybe in a background progress (downloadFile). The idea is good, but if a player want to play, and have bad internet, annoying to wait until he can play. (If everybody should that's th worst).
  10. I love this help requests ? Man, the error message show you exactly what's the problem: you don't have a table with name elections. Just upload the stolen/downloaded .sql file into phpmyadmin/mta/export and it will work.
  11. Interesting. When i last used this it was usefull. It's in my "old" (2018 jun's) core I have to test it's performance better than the usefull one, or it's the same just implemented.
  12. oh my goooosh how smart (Okey, on sublime text you can press ctrl+d and select all same string but yeah...) to don't let editers to edit the code
  13. sanyisasha

    Trade

    Still not see addCommandHandler or bindKey
  14. Look like it's because the script use a black text for "bordering". Try to find dxDrawText duplicates where the "tocolor" arugment is tocolor(0,0,0,255)
  15. Yeah, dunno why. Maybe road to +reps. And use log isntead of file variable. Btw i think this keep open the file to optimize more memory. Bcs open/close file every command not better than keep the file open (i think fileWrite don't require fileClose to work)
  16. Pirulaaax. (Szia) No, nobody because it's dose not accept elements. If it is, the wiki wrong! (It writes that theObject can only string) bool isObjectInACLGroup ( string theObject, aclgroup theGroup )
  17. Need more info to help? What do you mean?
  18. Hi. Why i get this error? I want to make a class named Database, what in construct do dbConnect. The resource1 is copy this class, but first rename meta.xml to meta.old.xml, and that's where the problem happens. I tryed exporting the dbConnect value, same error. I found out the dbConnect and it's value throw this error. But why i can't rename? Thanks for help, SaSha
  19. Not that's the problem. Simple: //xy.php Class test extends test2 { public $var; public function __construct($varVal) { $this->var = $varVal; } } //yx.php somewhere else require 'xy.php'; $testClass = new test(1); echo $testClass->var; Btw my final solution: Own package manager <!-- meta.raw.xml | Package manager generate meta.xml from this --> <test> <info author="SaSha" /> <package name="utils" /> <package name="user" /> <script src="test.lua" type="client" /> </test> <!-- Generated meta.xml --> <test> <info author="SaSha"></info> <script src="packages/utils/unclasslib.class.lua" version="1.0" type="shared"></script> <file src="packages/user/assets/24.jpg"></file> <script src="packages/user/User.class.lua" version="0.0.1" type="shared"></script> <script type="client" src="test.lua"></script> </test> And i can access int test.lua what for example User.class.lua contains. That's good because when i write a resource, for example a loginpanel, simple write needed packages in the meta.raw.xml and in the server: /package test install, and the package manager generate meta.xml, copy scripts, folders and everytihing or if it's exists, replace it with the new one. (Later with version check)
  20. Lol you translate it? I see this: Eğer luada yazmazsan, neden bu senaryoya ihtiyacın var? If you want to make an own server, learn first scripting, or pay someone to make it for you.
  21. I heard IFP support only avaiable in 1.5.6 and 1.5.5 Nightly versions. (Nightly: not stable, only developer version. Good for making script before updates.)
  22. You can use database, xml or more simply, the built in account system
  23. If you don't script in lua, why need this script?
×
×
  • Create New...