I think it's fitting to use hash tables instead of INI for what you want:
Code:
on *:exit:{
  hsave total total
  hsave prize prize
}
on *:text:*you sent*:#:{
  hinc -m total $chan
  hinc -m prize $nick
}
on *:start:{
  hmake total 100 
  hmake prize 100
  if ($file(total).shortfn) hload total $v1
  if ($file(prize).shortfn) hload prize $v1
}
on *:text:!prizes*:#:{
  var %total = $hget(total,$chan), %prize = $hget(prize,$2)
  msg $chan $iif(!$2,%total,%prize) prize(s) sent from $iif(!$2,$chan,$2)
}
You may want to start from scratch with this script.

Last edited by Tomao; 06/06/11 08:10 AM.