remini help. Stuck. - 19/09/14 08:54 PM
I am trying to delete a specific item from an ini file and I am failing. Through trial and error, I was able to delete the last line or the first line from the ini, but not a specific item. The adding an item works fine. Any help would be greatly appreciated. Here is what I have so far.
Code:
on *:text:!weapon *:#: { if (%Gamescript.On. [ $+ [ $chan ] ] != $null) { if ($nick isop $chan) { var %k = $+($chan) var %n $ini(weapons.ini,#,0) if ($2 == add) { inc %n writeini weapons.ini %k %n $3- msg $chan The weapon " $+ $3- $+ " has been added. } if ($2 == delete) { if { I don't know what goes here? msg $chan The weapon " $+ $3- $+ " was removed. } else { msg $chan The weapon " $+ $3- $+ " was not found. } } } } }