Save weapons to a file
#1

When you login into a gang, you get some weapons.

My question is, how do I save those weapons with the player's name to a file? [So I can use the info later]

Thanks in advance
Reply
#2

Ill try to be a bit more clear in my request.

- Login into a gang, get 3 different weapons
Now, what I want to do is save those 3 weapons associated with the player's name to a file using dini_IntSet("/Script/Weapons.txt"
so I can use them later for something im making.

Help is much appreciated
Reply
#3

Hope this helps, tut on saving stuff to txt files
https://sampwiki.blast.hk/wiki/File_Functions

Reply
#4

urghh I hate anything that has to do with file functions it took me a decades to know how to script that and two dozens tylenol
Reply
#5

Quote:
Originally Posted by wangdata
Hope this helps, tut on saving stuff to txt files
https://sampwiki.blast.hk/wiki/File_Functions

He uses dini and not file functions
Reply
#6

Quote:
Originally Posted by ◄=[•
WIll[•]=► ]
urghh I hate anything that has to do with file functions it took me a decades to know how to script that and two dozens tylenol
if you want users download DracoBlue's dini , dutils and dudb just use
pawn Код:
#include <dudb>
and i suggest u use dcmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)