Community discussions

MUM Europe 2020
 
headshoter
just joined
Topic Author
Posts: 18
Joined: Mon Jul 30, 2012 3:21 am

Null value returning instead of Usernam!

Sun Jul 13, 2014 12:54 pm

Hello ,
i ran this line of script to get my userman users's username, but it will show null in log! if i switch username attribute to comment it'll work like a charm :)
do you have any idea of why this happening ?
:log info [tool user-manager user get 1 username]
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2950
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Null value returning instead of Usernam!

Sun Jul 13, 2014 8:52 pm

1) USE FULL SYNTAX

2) you can not use number obtained by "print" command on one script.

3) the value you want is name, not username

replace "1" with your wanted value.
the first user has index 0, second 1 etc.
:log info message=[/tool user-manager user get ([/tool user-manager user find] -> 1) value-name=name];
I'm Italian, not English. Sorry for my imperfect grammar.

Who is online

Users browsing this forum: No registered users and 20 guests