|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-06-2008 18:00
hi, i'm using menu from the lsl wiki, and i'm having a problem adding a message linked command. the script mentioned: http://wiki.secondlife.com/wiki/SimpleDialogMenuSystem the addition i'm trying to do: From: someone else { //this is the section where you do stuff llMessageLinked(LINK_SET, choice, "time", NULL_KEY); llSetTimerEvent(0.0); llListenRemove(listen_id); //okay anything else left is an actual choice, so do something with it
the script gives me an error when i try to save: From: someone (125, 50) : ERROR : Function call mismatches type or number of arguments the line it's questioning is From: someone llMessageLinked(LINK_SET, choice, "time", NULL_KEY); any idea what that is, or how to fix it? anyone? and yes, choice is predefined, so i know that's not the problem. it keeps putting the cursor in front of NULL_KEY if that helps
|
|
Diag Anzac
Registered User
Join date: 27 Oct 2006
Posts: 45
|
08-06-2008 18:11
The second parameter to llMessageLinked needs to be an integer. Looking at the SimpleDialogMenuSystem script, "choice" seems to be a string. If you don't need to send the value of "choice" to the linked prims, just send a 0 (zero) as the second parameter. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llMessageLinked*edit: If you DO need to send the "choice" variable, assuming it is just a number in string form, try (integer)choice.
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-06-2008 18:52
From: Diag Anzac The second parameter to llMessageLinked needs to be an integer. Looking at the SimpleDialogMenuSystem script, "choice" seems to be a string. If you don't need to send the value of "choice" to the linked prims, just send a 0 (zero) as the second parameter. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llMessageLinked *edit: If you DO need to send the "choice" variable, assuming it is just a number in string form, try (integer)choice. aah ok, that might help, i was distracted by it moving to NULL_KEY, i'll try later
|