|
Kain Cleaver
Registered User
Join date: 24 Jan 2006
Posts: 178
|
01-02-2008 21:33
ok.. so i made this high score board.
i use XYText 1.5
so im trying to figure this out.. its baffling
the whole score board works great.. names display properly.. im happy
but the person logs off secondlife.. and when the board updates.. their name disapears.
the key is still there.. they still get paid like they are supposed to when the time comes.
but their name will not show up as long as they are offline...
im using llKey2Name to convert the key of the person to the name of the person to show on the board
is there some kinda glitch with SL that does not allow someones name to be displayed when they are off line?
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-02-2008 23:19
Nothing wrong there. It works as intended.
You will have to store the name of the person for your purposes.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-03-2008 05:13
to go more indepth, key2name only returns the avs name if they are in the sim... other methods may be more reliable for constant checks for a name, or as suggested, store the name
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
01-03-2008 06:59
Yes, I've been making an online status and realised what void singer says, if agent is online or outside sim llKey2Name(agent); will return an empty string.
This is really bad and I don't understand why they make it work this way. It makes coding unclearer and not automated because you have to save the name manually into a string.
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
01-03-2008 07:18
From: Kahiro Watanabe This is really bad and I don't understand why they make it work this way. It makes coding unclearer and not automated because you have to save the name manually into a string. They mostly don't want to end up storing what could virtually be a database of agent info on each sim.
|