07.10.2009, 10:38
Hash File Loader
This is my first plugin for samp as it was requested by a friend. I noticed SA-MP doesn't have many decent file storage options. Yes theres dini and sql variants but imo they aren't fast enough.
So i created this has file loader. It works in a similar way to mIRC hash files (Hashes are stored in a text file and loaded into memory, and resides there until saved)
In testing, its a LOT faster than ini and sqlite so its great for anyone who needs/wants the best performance from their script.
The plugin code is a bit messy since it was originally designed for another project of mine, so i just took the files and rammed them into the hello world example.
Heres the files: http://liberty-unleashed.co.uk/samp/hashloader.zip (Contains dll, so and inc)
And heres the source: http://liberty-unleashed.co.uk/samp/hash-src.zip
The usage is pretty self explanatory so check the inc file.
Enjoy
This is my first plugin for samp as it was requested by a friend. I noticed SA-MP doesn't have many decent file storage options. Yes theres dini and sql variants but imo they aren't fast enough.
So i created this has file loader. It works in a similar way to mIRC hash files (Hashes are stored in a text file and loaded into memory, and resides there until saved)
In testing, its a LOT faster than ini and sqlite so its great for anyone who needs/wants the best performance from their script.
The plugin code is a bit messy since it was originally designed for another project of mine, so i just took the files and rammed them into the hello world example.
Heres the files: http://liberty-unleashed.co.uk/samp/hashloader.zip (Contains dll, so and inc)
And heres the source: http://liberty-unleashed.co.uk/samp/hash-src.zip
The usage is pretty self explanatory so check the inc file.
Enjoy
