mIRC Home    About    Download    Register    News    Help

Print Thread
variables wont save #6794 16/01/03 02:53 AM
Joined: Jan 2003
Posts: 9
C
crashy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2003
Posts: 9
why is it that my variables dont save when i close mirc? is there a switch somewhere?

Re: variables wont save #6795 16/01/03 03:28 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Variables arn't saved unless you save them before closing mIRC. mIRC doesn't autmatically assume you want to save them.

/set %blah 123 <--- This is saved as a variable in your remotes.ini file.

/var %blah 456 <--- This is disposed of once a script calling it stops or is stopped.

Re: variables wont save #6796 16/01/03 03:42 AM
Joined: Dec 2002
Posts: 24
G
GK_Kamel Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 24
on *:exit:saveini

i think that would work, maybe? lol

Re: variables wont save #6797 16/01/03 03:49 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
How does that work when a local variable is non-existant though?

Re: variables wont save #6798 16/01/03 09:32 AM
Joined: Dec 2002
Posts: 143
A
Aubs Offline
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
Crashy didn't mention what variables were being cleared. I would have assumed that they were variables created with /set and not /var, because I presume they were there, in the variables tab of the editor, otherwise he wouldn't have asked....

Maybe Crashy's got an on EXIT that is clearing all variables out when they close mIRC.

As a suggestion, Try disabling all remotes and /set a few variables, then close mIRC and open again... then see if the variables are still there. If not, something's f**ked!!! If they are still there, then it's quite possible you've got a script in your remotes that clears all variables on exit...

Just a suggestion!! smirk


Aubs.
cool

Re: variables wont save #6799 16/01/03 12:41 PM
Joined: Jan 2003
Posts: 9
C
crashy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2003
Posts: 9
there wasnt any "on exit" issues. could it be using the wrong file perhaps? anyhow, adding the saveini has fixed it, thanks.

Re: variables wont save #6800 16/01/03 02:29 PM
Joined: Dec 2002
Posts: 143
A
Aubs Offline
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
Just re-read over my last post and thought it sounded a bit argumentative, was not how I intended, sorry! laugh

Am at work atm and I've got soooooooo much to get done by tomorrow...Late night looking likely mad ...Maybe that's why it sounded argumentative!!

smile


Aubs.
cool