edit player file without his connection
#1

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.
Reply
#2

You can open the file with something like Notepad and go edit it? :P
Reply
#3

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.
Reply
#4

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:
pawn Код:
Ban=1Carkey=15
change it to:
pawn Код:
Ban=1
Carkey=15
and its a problem to read.
how i can change the defult?
Reply
#5

any way to make that without use dini? just fwrite or somthing else?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)