LeetCraig Posted March 27, 2006 Share Posted March 27, 2006 I've searched all over the forums for an answer to this but I was unable to find one. My server is running off of Clan-RPG Script v3.17 and GRS. Everything is working and you can get money and everything, but if you log out and log back in all of your money is gone. How can I make it so that the money stays? Please don't just say "learn mIRC and do it yourself", because I'm in the process of learning it and I still haven't been able to find a solution to this. Thanks in advance.. Link to comment
MrJax Posted March 27, 2006 Share Posted March 27, 2006 (edited) on *:SIGNAL:mta.part:{ !writeini -n rpg.ini cash $mta.name($1,$2) 5 } on *:SIGNAL:mta.join:{ mta.say $1 $mta.name($1,$2) has $iif($readini(rpg.ini,cash,$mta.name($1,$2)),$v1,0) moneyz } ::$readini(,) - returns value or null ::!writeini - writes value Edited March 27, 2006 by Guest Link to comment
LeetCraig Posted March 27, 2006 Author Share Posted March 27, 2006 Thanks, now I won't have to deal with everyone complaining anymore Link to comment
:Rob Posted March 27, 2006 Share Posted March 27, 2006 The help section exists for a reason, yo. Link to comment
LeetCraig Posted March 27, 2006 Author Share Posted March 27, 2006 Hmm. When I log in it always says that I have 5 dollars when I really don't have any, it doesn't write anything to rpg.ini (it's blank still), and when I log out and log back in my money still goes back to zero. Link to comment
:Rob Posted March 27, 2006 Share Posted March 27, 2006 Sounds like a problem with your INI. I have a good RPG I custom wrote with help from a friend, for .4 ... you could take a look at it and if it could be used, feel free to do w/e with it. Link to comment
LeetCraig Posted March 27, 2006 Author Share Posted March 27, 2006 That'd be a big help. Could you send it to me? [email protected] Link to comment
Recommended Posts