Delete a key in .ini file ?
#1

Hi, good morning, i have a little problem... I'm working in one CP system for my server and i need to create a function that delete any key in a .ini file...
Ok ok, i explain.

The example in the .ini file :
Quote:

Money=800
Level=5

how do i delete the key "Money" ?

(I use the bini include, made by ipsBruno on PT Board.)
Reply
#2

Set it to 0? Is that what u want to do. All these scripts which save in .ini files! They are made to save it in this format. If you dont want to bug it. U better change the way is saved then loaded!
Reply
#3

not specifically...

I'll give another example :

Inicially the file:
Quote:

Xpos1=1.0
Ypos1=1.0
Zpos1=1.0
Xpos2=2.0
Ypos2=2.0
Zpos2=2.0

now i use one command... example, "/undo" and the command will delete the last positions saved... In that case is "Xpos2", "Ypos2" and "Zpos2"

final, only the "Xpos1", "Ypos1" and "Zpos1" remain. :
Quote:

Xpos1=1.0
Ypos1=1.0
Zpos1=1.0

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)