edit player file without his connection - 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: edit player file without his connection (
/showthread.php?tid=171142)
edit player file without his connection -
vection - 25.08.2010
I mean, if i want to edit function like Vehicle destroy.
if i destroy some vehicle and the owner is not connected, anyway its update any function in his file name.
GF edit if its help.
Re: edit player file without his connection -
Wrath2k10 - 25.08.2010
You can open the file with something like Notepad and go edit it? :P
Re: edit player file without his connection -
woot - 25.08.2010
Let's say your command is /delcar Name_Name and your params are your command params - using dini
pawn Код:
new filename[MAX_PLAYER_NAME+4];
format(filename,sizeof(filename), "%s.ini", params);
dini_IntSet(filename, "carid", -1);
I don't know what exactly you're trying to do but that should get you the idea.
Re: edit player file without his connection -
vection - 25.08.2010
Quote:
Originally Posted by exora
Let's say your command is /delcar Name_Name and your params are your command params - using dini
pawn Код:
new filename[MAX_PLAYER_NAME+4]; format(filename,sizeof(filename), "%s.ini", params); dini_IntSet(filename, "carid", -1);
I don't know what exactly you're trying to do but that should get you the idea.
|
thats work well, but its change the format of the text, if i had somthing like that:
change it to:
and its a problem to read.
how i can change the defult?
Re: edit player file without his connection -
vection - 25.08.2010
any way to make that without use dini? just fwrite or somthing else?