Difference between revisions of "Talk:Money transfer denied"

From Second Life Wiki
Jump to navigation Jump to search
(A comment added)
 
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
         if(perm & PERMISSION_DEBIT)
         if(perm & PERMISSION_DEBIT)
         {
         {
             state ready;   
             //normal code if it is granted.
         }
         }
         else
         else
Line 14: Line 14:
</lsl>
</lsl>
What would be the difference? [[User:Arda Xi|Arda Xi]] 14:07, 22 February 2008 (PST)
What would be the difference? [[User:Arda Xi|Arda Xi]] 14:07, 22 February 2008 (PST)
:This would be useful for knowing when the account has run out of money. Of course you could send an email to a server with each llGiveMoney, then check the transaction log on the website to see if the match (this could be automated). -- [[User:Strife Onizuka|Strife Onizuka]] 00:35, 23 February 2008 (PST)

Latest revision as of 00:35, 23 February 2008

Isn't this already possible by first requesting the permission and then using <lsl>

   run_time_permissions (integer perm)
   {
       if(perm & PERMISSION_DEBIT)
       {
           //normal code if it is granted.
       }
       else
       {
           //code for your transfer denied event
       }
   }

</lsl> What would be the difference? Arda Xi 14:07, 22 February 2008 (PST)

This would be useful for knowing when the account has run out of money. Of course you could send an email to a server with each llGiveMoney, then check the transaction log on the website to see if the match (this could be automated). -- Strife Onizuka 00:35, 23 February 2008 (PST)