mIRC Home    About    Download    Register    News    Help

Print Thread
#28620 07/06/03 08:25 PM
W
Webmonkey
Webmonkey
W
Hey...
Ok so I've got the character creation working how I want it... now I need to know how to add to the my .ini file using writeini

this is what i did (Didn't work)
Code:
 on *:Text:#GetStuff:#:{
  writeini players.ini $nick Dagger $calc(Dagger + 1 ))  
}  


How am I going to do it? I just need to know how to add to the amount of dagger's the guy has without having to set it to a variable and add to the variable becuase I'd have to infinite number of If commands. HELP!

#28621 07/06/03 10:44 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Code:
on *:Text:#GetStuff:#:{
  writeini players.ini $nick Dagger $calc([color:red]$readini(players.ini,$nick,Dagger)[/color] + 1)  
}
/help $readini


Link Copied to Clipboard