Delete a key in .ini 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)
+--- Thread: Delete a key in .ini file ? (
/showthread.php?tid=402580)
Delete a key in .ini file ? -
Dragonborn - 27.12.2012
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 :
how do i delete the key "Money" ?
(I use the
bini include, made by ipsBruno on PT Board.)
Re: Delete a key in .ini file ? -
Ballu Miaa - 27.12.2012
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!
Re: Delete a key in .ini file ? -
Dragonborn - 27.12.2012
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
|