CODE
if (llGetInventoryType (paySplitCard) != INVENTORY_NONE)
{
bmDebugMsg ("The " + paySplitCard + " notecard exists, checking for data");
// transfer control to the getPaySplitCount state //
state getPaySplitCount;
}
This code works fine and sends the script to the getPaySplitCount state...
CODE
state getPaySplitCount
{
state_entry ()
{
bmDebugMsg ("Entering state getPaySplitCount");
bmStatusMsg ("Retrieving number of notification recipients");
bmDebugMsg ("paySplitCard = " + paySplitCard);
// get the number of lines in the itemListCard notecard//
llGetNumberOfNotecardLines (paySplitCard);
}
}
The problem I am having is that while the debug message DOES display the proper output (paySplitCard = paySplit) in the Communicate window, I then immediately get an error stating: "Couldn't find notecard paySplit". (paySplitCard is a global.)
Any ideas what's causing this?