|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
04-21-2007 07:26
Hi!
I have a script where I have to use llGetNotecardLine and also llRequestAgentData. Since I can not use 2 dataservers, How can I fix it to get it working and obtainin the data for both functions from only one dataserver?
llRequestAgentData I use it in a timer event to know if owner is online and llGetNoteCardLine to get some strings from a notecard.
I tried it and it doesn't work well. It reads the texts in the notecard but it doesn't requests the agent's data. Thanks.
_____________________
First goes before AW Devices
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-21-2007 07:31
Set each of your "dataserver requests" to a variable. query = llGetNotecardLine();
query2 = llRequestAgentData();
dataserver(key id, string data) { if(id == query) //notecard; else if(id == query2) //online; }
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
04-21-2007 08:17
yes!!!
It works, I had already tried a similar solution but it didn't work.
Thanks.
_____________________
First goes before AW Devices
|