I would like a script what open a file and write over sg.
For exapmple
seetings.ini => ISP = 1
Ban = 1
...........
And for example !set ISP 0
seetings.ini => ISP = 0
Ban = 1
?( ?( ?( ?( ?( ?( ?(
Pls help me. I ask for a script what Overwrite something in a settings File.....
----------------
Version = 0
Bot = 1
ISP = 1
----->>> ForExample: !set Bot Sg
Version = 0
Bot = Sg
ISP = 1
Thx.
Psl somebody help me.
I learn scripting with Lua and I make a Bot... And I would like to use this function ... ;( :(
................................................................................
ok as you wanne learn i'll only give the outline of what 2 do.
1) open the settings file
2) stuff every line in2 a table
3) compair every line 2 match the line you want 2 change
4) remove the old file
5) save the table 2 a new file
6) close the file
plop