mIRC Home    About    Download    Register    News    Help

Print Thread
#166034 05/12/06 04:17 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I wanted to use $version for my script, if ($version =< 6.21) { do stuff } .. and when i check what $version return it returnds 6.2 . shouldent that be 6.21 ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166038 05/12/06 04:25 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
You did update, right?


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #166039 05/12/06 04:27 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Yes, i downloaded a new file today to see if it still returns the same value, and yes it does.. echoing my version: 6.2 .. used: //echo echoing my version: $version in status window.

;---------- Edited

I downloaded the file from:

mIRC 6.21 in the UK "first link", and that one gave the answer 6.2 . and you asked if i updated, so i tryed to download the file from the link mIRC 6.21 in Australia, that one gave me the right version.

Last edited by sparta; 05/12/06 04:38 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166049 05/12/06 05:11 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
//echo -a $readini($mircini, about, version)

See what that returns.

Last edited by Jigsy; 05/12/06 05:11 PM.

What do you do at the end of the world? Are you busy? Will you save us?
sparta #166055 05/12/06 05:39 PM
Joined: Dec 2002
Posts: 5,421
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,421
I downloaded mIRC from both UK links and installed each in a separate empty folder, both return 6.21 for $version for me here.

Khaled #166056 05/12/06 06:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thanx for looking in to it, it didnt for me, maybe cos i just copyed mirc.exe, then i overwrited the existing one? but as i wrote befor, solved now smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166084 06/12/06 02:51 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
mirc.ini contains...

[about]
version=6.2

By copying over the new mirc.exe you kept an old unaltered mirc.ini with the old version number in it. Updating and selecting to 'backup' and 'keep settings' during the installation should update mirc.ini where neccersary. (afaik)

Last edited by Om3n; 06/12/06 02:53 AM.

"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Om3n #166110 06/12/06 02:42 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
All i had to do was to delete mirc.exe, then replace it.. mirc.ini is still the same, and now the version show ok, mirc.ini keeps track of files that should be loaded, and stuff like that, the version is in mirc.exe it self, so dosent mather if u keep ur old mirc.ini .. smile in my "old" mirc.ini

[about]
version=6.21

so mirc.exe write that line it self.. "i did only replace the exe file, nothing more"


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #166152 07/12/06 03:24 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Yeah i figured mirc had the version details in the exe, most software does. Just thought maybe it was reading from the ini for some reason, as it seemed to be the only solution that fitted.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard