SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 14/08/2020, 02:03 AM   #1
[NRG]Dark
Big Clucker
 
[NRG]Dark's Avatar
 
Join Date: Nov 2011
Location: San Andreas
Posts: 168
Reputation: 16
Default Python DOF2


Python DOF2 integration module
Simple and Useful


I had the need to integrate DOF2 into Python, and since it spent some time for me I decided to come and share it with the community.

How it works? This is a module that allows you to use the main functions of DOF2 in Python programming.
Simple and Useful for those who need it.

Usage:
  • Add this to the top of your script:
    Code:
    from dof2 import *
    Functions supported:

    PHP Code:
    DOF2_Get(file,key// Get the value of the key as string
    DOF2_Set(file,key,value// Set the key value
    DOF2_FileExists(file//Check if file exists (return True or False)
    DOF2_RemoveFile(file//Delete the file
    DOF2_CreateFile(file//Create the file if it doesn't exists. 



Important note:
I dispense non-constructive criticism. My idea is to save time for those who might need it.
But suggestions/doubts are very welcome!


__________________
[NRG]Dark is offline   Reply With Quote
Old 14/08/2020, 02:46 AM   #2
Unrea1
Gangsta
 
Unrea1's Avatar
 
Join Date: Oct 2013
Location: Venezuela
Posts: 824
Reputation: 129
Default Re: Python DOF2

DOF2 in 2020?, use SQLITE or MySQL my god
__________________
Unrea1 is offline   Reply With Quote
Old 14/08/2020, 10:55 AM   #3
[NRG]Dark
Big Clucker
 
[NRG]Dark's Avatar
 
Join Date: Nov 2011
Location: San Andreas
Posts: 168
Reputation: 16
Default Re: Python DOF2

I appreciate the suggestion and know the benefits of databases when compared to files. But it's not my priority right now.
__________________
[NRG]Dark is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] [DEV] Python for SA-MP ev0lution Plugin Development 29 11/02/2019 09:31 AM
Python Scripting ( HOW TO SCRIPT WITH PYTHON??) janko1223 Scripting Help 2 26/09/2016 04:48 PM
Python CopKing123 Everything and Nothing 12 11/09/2016 03:03 PM
Python Kruno88 Everything and Nothing 5 24/04/2015 07:25 PM
[Plugin] Python Fabsch Plugin Development 41 22/01/2012 11:31 AM


All times are GMT. The time now is 12:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.