creating TXT files?
#1

Hey,i want to make an faction system,like it will do txtfile everytime ya type /createfaction [name] [leaders name]
and the textfile name would be factions name,and how to load them too then?
thanks.
Reply
#2

Quote:
Originally Posted by Fog™
Hey,i want to make an faction system,like it will do txtfile everytime ya type /createfaction [name] [leaders name]
and the textfile name would be factions name,and how to load them too then?
thanks.
Use Dini or Dudb to do this or read about file functions in the SAMP wiki:

https://sampwiki.blast.hk/wiki/File_Functions

The best advice is to use Dini:

Код:
// To create a faction name

dini_Set("faction","faction1name","factionone");
dini_Set("faction","faction2name","factiontwo");

// To retrieve it

dini_Int("faction","faction1name")
Just a simple example.



Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)