Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveMoney problems?

Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
08-14-2007 12:58
Just had someone I wrote a script for report a problem. An object that was set to pay someone else (in this case, me) has a key hardcoded into it. But when she tested it and paid, it gave her the message, "Object: Invalid parameter in llGiveMoney()."

She gave me the script, and it worked for me. I joined her in the sandbox where she was, and then it worked for her.

She just went to a different sim and tried it, and it worked.

Then, I tpd back to my previous spot while she went back to that original sandbox. Now it worked again.

And earlier the script did not work from the same sandbox with another recipient. . .

ANY IDEAS WHY???

Thanks, Baron
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
08-14-2007 13:08
Is it paying a fraction, which might be zero? That's usually the cause, when the key is known to be good.

If you want the script to be fair (and since it's paying you, you should!) you should accumulate the fractional unpayable $L and include them in the next payment. The arithmetic is pretty simple.
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
08-14-2007 13:52
Thanks, you're exactly right. She had tried with different amounts. I always try with the same amounts, so that didn't occur to me to ask!

Anyway, I put in a zero check and kept track of the remainder. Great ideas, and thanks for the prompt help!