Jump to content

Atton

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by Atton

  1. How to I go about updating and getting data using sql. local connection = dbConnect("sqlite","data.db") function makeTable (Name) local queryHandle = dbQuery ( connection , "CREATE TABLE IF NOT EXISTS data (name TEXT , cash TEXT , x TEXT ,y TEXT ,z TEXT)" ) end function mT (thePlayer) local account = getPlayerAccount(thePlayer) local acc = getAccountName(account) local x, y, z = getElementPosition(thePlayer) local cash = getPlayerMoney(thePlayer) local queryHandle = dbQuery ( connection , "INSERT INTO data (name,cash,x,y,z) VALUES(?,?,?,?,?)",tostring(acc),tostring(cash),tostring(x),tostring(y),tostring(z)) outputChatBox(tostring(acc)..tostring(tonumber(cash))..tostring(x)..tostring(y)..tostring(z)) end addCommandHandler("box",mT)
  2. Atton

    Sql

    Pretty much all I am looking for is a an example of how to write to an sql file. Or more information on how to use the sql functions.
  3. Atton

    Sql

    The tutorial is a tat big foggy. Ineeded, dont ask for help if you're not willing to read. I have read and I have looked however the functions are still confusing. All I am looking to learn is how to read and write from sqllight nothing more than that.
  4. Atton

    Sql

    The tutorial is a tat big foggy.
  5. I have a login panel if you want it the price is negotiable.
  6. Atton

    Sql

    I have been trying to work with sql however I have have really hit a brick wall. In a nutshell I have no idea what these functions do that the terminology used to describe them is confusing. executeSQLQuery dbConnect -- Pretty sure this connects a db file. dbExec dbQuery dbPoll dbFree
  7. Atton

    Merge Two scripts

    This code might be better. http://pastebin.com/nkhzqRgE
  8. Atton

    Shutdown

    Just prevent the command handlers from being made off the server.
  9. Have not tried it but I would suggest leaving it I might try some changes later on.
  10. Ale Tiny Encryption Algorithm Lua Encoder Ale is an encryption system that encodes Lua much like the mta sa compiler. However it has a few advantages. @ Files can be encoded offline which means they never need to leave the server. @ It is easy to use and works much like the mta sa compiler. @ Can even be used with community resources to prevent people from stealing your code. @ Ale can be integrated into any resource with minimum effort. @ Ale can encrypt things that the mta sa compiler just won’t. The system works by using one resource to encode the .lua files into .tea files which can be decoded and executed by the decoder. The decoder will read the .tea files decode them then inject the code into the server much like how .luac files work. The decoder will function as part of the resource and can be integrated cleanly. Video: Pack Link: http://www.mediafire.com/download/ahgyt ... ly/ale.zip Community Encoder: https://community.multitheftauto.com/in ... ls&id=9032 Community Decoder Framework: https://community.multitheftauto.com/in ... ls&id=9033 If you have comments, questions or contributions then post below or message me.
  11. Atton

    executeString

    How can you even make use of it.
  12. I would recommending making a function for the lua api that will run a string. For example if you where to read from a text file executeString would run any functions or stuff like that. executeString
  13. Atton

    Vehicles

    Destroy does not do anything no error messages.
  14. Atton

    Vehicles

    I have to ask about something I have been working on say I where to spawn a car using this command. function createCar () car = createVehicle(411,0,0,14) outputChatBox("TRUEm",thePlayer) end addCommandHandler("make",createCar) How could I destroy every car made with this command?
  15. I have some free time I might be able to help fix broken scripts.
  16. I agree with you, its just not about stealing, how are we supposed to ever be capable of doing this ourselves or getting the knowledge for doing it and creating a method in the future (if ever needed, like denny needs it for school), since i myself couldnt find any useful topic about it in the internet (spent about 2 hours just passing pages to find anything, but couldnt), and here comes, im a foolish for actually asking when i couldnt find it myself, just for the fact of asking someone who knows it and can explain it in a better way? It's done in lua some of the functions can be used to decrypt RSA.Newmeta did it by taking info from the mta files.
  17. Greetings, Atton. Thank you for trying out one of our products, we very much appreciate that you're taking the time to improve our test build, though we'd like to ask you a few things in PMs and continue our conversation there. Shortly after this message you'll be contacted by us. Thanks, G&T Mapping. Follow us on, Facebook: https://www.facebook.com/pages/GT-Mappi ... 213?ref=hl Our Blog: http://gtmapping.wordpress.com/ We also still accept donations, press the donate button below! Very well then.
  18. I took the time to make some changes. http://www.mediafire.com/download/vfpca ... leaned.zip
  19. Good idea, not sure if there is so much more to improve in it thought but if you find any way of improvement I would like to hear about it. v1.4.6 is now released. No source so that is sort of useless.
  20. 800 hours of scripting work to make it like dkr.
  21. This is pretty much a system where text is encrypted and decrypted by using the teaEncode and teaDecode functions. It transform's text into encrypted text it is helpful for storing information. Edit : Pretty much made a resource out of this. https://community.multitheftauto.com/ind ... ls&id=8858
  22. Wanted to be able to read the source for security reasons.That and to check for any possible performance improvements.
×
×
  • Create New...