Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveMoney() success/failure? (and error handling in general)

Zeke Murdock
Junior Member
Join date: 3 Jun 2004
Posts: 7
07-08-2004 14:53
Is there any way to tell if llGiveMoney() succeeds or fails?

Or is there any way to tell how much money a script owner has?

It would be nice to be able to do this sort of thing somehow. Or perhaps add a failure() event that is invoked when something fails -- that would work well when things like llRezObject fail also.

something like failure(integer what, integer why) and have constants like FAILURE_GIVE_MONEY, FAILURE_REZ_OBJECT and then NOT_ENOUGH_MONEY, or DESTINATION_NOT_AN_AVATAR

Thoughts?

Better error handling in general would be nice.

- Zeke Murdock
Maurice Cunningham
Junior Member
Join date: 25 Jun 2004
Posts: 2
07-11-2004 09:43
It would be nice to have some sort of error handling event. It would make it much easier to write robust scripts. There are many more cases than just the ones listed here already that could use it. Everywhere that a funcion silently fails should be replace with an error/failure event invocation.
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
07-15-2004 18:24
im ure it would be easy for em to add at least a return value

so each function return 1 if success qnd 0 if failed