SA-MP Forums Archive
Save weapons to a file - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Save weapons to a file (/showthread.php?tid=124132)



Save weapons to a file - Str8Deadly - 29.01.2010

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


Re: Save weapons to a file - Str8Deadly - 29.01.2010

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



Re: Save weapons to a file - wangdata - 29.01.2010

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




Re: Save weapons to a file - will_92 - 29.01.2010

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


Re: Save weapons to a file - pierhs - 29.01.2010

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


Re: Save weapons to a file - Micko9 - 29.01.2010

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