mIRC Home    About    Download    Register    News    Help

Print Thread
#35822 11/07/03 11:40 PM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
Hey guys I think i found a mIRC bug not small at all....

I was scripting Q from quakenet in mirc...
so i used hashtables one named acclist contains for example :

shock #ircops amnotv
so it's a table with 3 dimensions now your bug ....

I dunno if it's possible to add tables with 3 dimensions, if it's not it's the first bug because in all other program languages it's possible.....
If I say it's possible and i add a few lines like that :

shock #opers amotv
shock #ircops amnotv
shock #help aov

and I like to delete a line i use hdel table item, if I do /hdel acclist shock it will delete all three entries, but it shouldn't cauze the table is written in 3 dimensions.
If I use $hfind before deleting i delete the right line .. so it's working without problems ...
but If I delete the line there is a space in the table, and items after that space won't be accessable from the remote files,
so i need a command like /redo such a command exists (self scripted) but If you try yourself you will see that it won't work with
hashtables written in 3 dimensions!!!

so there is one chance to go around that line bug i use a loop and write all datas in a new table EXCEPT the line i want to delete the line i found with $hfind,
then i do /hfree on the old table where the 1 line is in, then i copy all data from the new table back to the old table so that i can access it again....,
but if there are many users using that system and many channels it won't work cauze then there will be 200 MB in my server ram and not enough free space
to access all commands as fast as before!

read it out and enjoy it - tell me what you think,..

THX for reading .... greetings shock @ irc.deepirc.net

#35823 11/07/03 11:43 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
cross posting = bad

and read my response to your other post, this isn't even close to a bug.

#35824 11/07/03 11:52 PM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
so ok then tell me how to add 3 items like shock into 1 table and how i am able to to give the specified out right wink

#35825 11/07/03 11:53 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well the simple answer is you can't. The real answer is use something like a token seperated list to store each value then write script functions to access each dimension.

#35826 12/07/03 12:03 AM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
thx but no way....... because if i add three items .... like
shock #opers aon
shock #deepirc amotv
shock #blubb aov

then i access with $hfind that i want to access but if i use hdel on one ..... the hdel parameter is /hdel table item
so if i delete shock it deletes all 3 lines and if i delete it ^1 line is missing and all items,datas after that [censored] line won't be accessable and how to redo a 3 dimensional hashtable ... -> no [censored] way

and at all i can't add it like that cauze mirc doesn't recognize that

shock #ircops amnotv
is not the same as
shock #blubb amnov

#35827 12/07/03 12:07 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
sorry i deleted my post because i misread your post and assumed you has no knowledge of hashtables and gave you a little tutorial blush


new username: tidy_trax
#35828 12/07/03 12:07 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Ok whatever, call a lack of a feature a bug if you want, but as Abraham Lincoln once said, "If you call a dog's tail a leg, how many legs does the dog have?" The answer was "four" and he said, "calling a dog's tail a leg doesn't make it one." Same holds true here. Multidimensional arrays are not supported in mIRC. It isn't a bug just because you call it a bug.

#35829 12/07/03 12:11 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
that makes sense but where the hell do you get all these dodgy comparatives :tongue:


new username: tidy_trax
#35830 12/07/03 12:13 AM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
At all ok you say it's a lack of a feature - you're right ok but languages like perl support it wink many other languages do so y can't it be supported in mirc? to make someones life harder? rofl =)

#35831 12/07/03 12:14 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well yes Perl supports it, but there are many things perl has that mIRC doesn't and many things mIRC has that perl doesn't. If you wish to suggest a feature, thats what the feature suggestions forum is for.

#35832 12/07/03 12:16 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
1. i didnt say it was "a lack of a feature" codemastr did
2. maybe khaled didnt want it in mirc, so why ask me?
3. im still learning c++ and i dont have much knowledge on other languages other than html, so really i dont even have a clue what this "bug" or "lack of a feature" you are speaking of actually is.


new username: tidy_trax
#35833 12/07/03 12:26 AM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
hrhr, If you are able to write in C++ you don't have to know something about that wink), then you don't need to know mirc very well wink

but i think It's missing and If other languages support it y not mirc?
mirc is nice program,
you are able to do nearly all with it but, that's not very well at alle =/

#35834 12/07/03 12:28 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
if you write in c++ then you can write a dll yourself to save khaled the trouble wink


new username: tidy_trax
#35835 12/07/03 12:38 AM
Joined: Jul 2003
Posts: 9
S
shock Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2003
Posts: 9
Yeah wink so you write me one? lol cauze i am to silly to write dll's....... rofl

#35836 13/07/03 01:18 AM
Joined: Jul 2003
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 47
why does perl support it and mirc doesnt? maybe because perl was written for web development and mirc is used for enhanced chat expeirience?, heh and if you know perl why don't you dump your hash tabels and use sockets to conenct to an sql database smart guy! smile


"watch the news today, so you don't have to watch the history channel tomorrow."
#35837 13/07/03 07:30 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Perl supports multi-dimenional hashtables OR arrays? smile

Fact is, arrays aren't really supported in mIRC yet. Just learn to cope with the tools provided by the language and use them instead. Codemaster gave you some good advice on how to do that.

#35838 13/07/03 03:42 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well it's really irrelevant here, but Perl actually wasn't created for web development, it was created for general scripting. It's just over the years more and more people used it for web development smile

#35839 13/07/03 10:50 PM
Joined: Jul 2003
Posts: 46
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
he was referring to perls present state smile not what it was designed for smile, hey you never know maybe khaled will change mirc into a web development scripting launguage instead and implement the arrays smile or maybe you could just use sockets with php smile


Link Copied to Clipboard