mIRC Home    About    Download    Register    News    Help

Print Thread
#18026 04/04/03 10:07 AM
Joined: Apr 2003
Posts: 1
G
Gng Offline OP
Mostly harmless
OP Offline
Mostly harmless
G
Joined: Apr 2003
Posts: 1
How about a function to convert decimal to hex? would really help smile

and of course structures, while and arrays if you got the time;)
but there's allways 'real' programming languages for that..

#18027 04/04/03 11:38 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
While loops already exist in mIRC.

As for $hex, use $base(number,10,16).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#18028 04/04/03 08:29 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
for arrays just use recursive vars:

%array[1]
%array[2]
%array[1][2]

etc :-]

loop it with %array [ $+ [ $chr(91) ] $+ [ %i ] $+ [ $chr(93) ] ]


If it ain't broken, don't fix it!
#18029 05/04/03 12:38 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
for arrays i'd use:
var $+(%,array,[,%i,][,%j,]) something
and for getting the the values from "array"
$eval($+(%,array,[,%i,][,%j,]),2)


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard