mIRC Home    About    Download    Register    News    Help

Print Thread
#47458 05/09/03 05:36 PM
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
try setting a local variable using $hget(). It returns $hget() invalid format. If you switch this variable to non-local (remove var), it sets the variable correctly.

Sample code:

%c.cnt = %c.cnt $+ $chr(58) $+ $hget(channels,%i.cnt).data

works

var %c.cnt = %c.cnt $+ $chr(58) $+ $hget(channels,%i.cnt).data returns $hget() invalid format.

Last edited by AKO; 05/09/03 05:38 PM.
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
//var %tmp = value | %tmp = %tmp $+ $hget(table,item) | echo -a --> %tmp

doesn't do anything for me. no echo, no error.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
That would be because since v6.0 you cannot use commands beginning with a %variable. wink
mIRC v6.0 (versions.txt)
149.It is no longer possible to enter editbox commands that begin
with an $identifier or %variable.
Code:
//hadd -m table item pos | var %tmp = value | [color:red]var[/color] %tmp = %tmp $+ $hget(table,item) | echo -a --> %tmp
--> valuepos

Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Nope, it works here.


* cold edits his posts 24/7
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
Once again this issue has surfaced.

set %c $gettok($hget(allowed,allow),%i,59)

when I use var instead of set, it doesn't function properly, returning a $gettok() problem.

Nevermind, was a syntax issue. Apparently you have to use var %c = $gettok($hget(allowed,allow),%i,59).......grrrr..

Last edited by AKO; 08/01/04 07:47 PM.

Link Copied to Clipboard