mIRC Home    About    Download    Register    News    Help

Print Thread
#65570 27/12/03 01:45 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
This dosen't work correct, tell me why?

Code:
on 1:text:newuser*:?:{
  [color:red]if ($readini(auth.ini, $2, user) == $2) {
    .notice $nick Username is taken
    halt
  }[/color]
  if $4 == $null { .notice $nick SYNTAX: newuser <username> <password> <code> | halt }
  if $4 == %new.code {
    writeini auth.ini $2 user $3
    writeini auth.ini $2 pass $encode( $+ $3 $+ )
    writeini auth.ini $2 address $address($nick,1)
    writeini auth.ini $2 time $fulldate
    writeini auth.ini $2 level %new.user
    set %new.user 1
    inc %new.code 9
    inc %new.code 2
    .notice $nick Your username created successful: /msg $me login $2 $3
  }
  else { .notice $nick Wrong code }
}

#65571 27/12/03 03:26 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Try to put a few echoes in -- does the $readini return anything?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#65572 27/12/03 04:56 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
yes the reply is right

#65573 27/12/03 05:00 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
it worked... just a human failure... smirk

#65574 28/12/03 10:04 AM
Joined: Dec 2003
Posts: 6
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2003
Posts: 6
There is an error:
Code:
  writeini auth.ini $2 user $3
writeini auth.ini $2 pass $encode( $+ $3 $+ )

--
Why u addded the username as password ($3)
and... the username is not necessary because he is already writed in the parameter two
writeini auth.ini $2
this $2 is the username...
so remove the line: writeini auth.ini $2 user $3
--
This is one of the errors ...
good luck


Link Copied to Clipboard