Hi there
How do you pay back money when they have given the wrong amount
I tried checking with and if statement and if id dosent equal the right amount i used
llGiveMoney(llDetectedName(0),amount);
dosent execute at all
can anyone help??
These forums are CLOSED. Please visit the new forums HERE
wrong Amount |
|
Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
|
07-28-2005 20:15
Hi there
How do you pay back money when they have given the wrong amount I tried checking with and if statement and if id dosent equal the right amount i used llGiveMoney(llDetectedName(0),amount); dosent execute at all can anyone help?? |
Judah Jimador
Registered User
Join date: 13 Mar 2005
Posts: 230
|
07-28-2005 20:18
Try switching to llDetectedKey()
![]() -- jj |
Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
|
07-28-2005 20:20
tried that too that was the first thing i tried
|
Judah Jimador
Registered User
Join date: 13 Mar 2005
Posts: 230
|
07-28-2005 20:43
Ah...my bad, I should've reviewed the method signature for the money() event rather than posting off the top of my head. I've been away from scripting for a month, and it shows
![]() The money event comes in as CODE
So, the llDetected... methods aren't suitable. To refund, assuming you'd set a constant called REQUIRED_AMOUNT, you'd do something like: CODE
Sorry about the false info... -- jj |
Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
|
07-28-2005 20:50
no problem thanks ill try that as soon as i can.
Thanks again Judah |
Catherine Omega
Geometry Ninja
![]() Join date: 10 Jan 2003
Posts: 2,053
|
07-29-2005 02:03
If you're still having trouble, I posted an example on the scripting wiki. It's free to use, so do with it what you will.
![]() _____________________
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
07-29-2005 05:43
You need the PERMISSION_DEBIT so your object can give your L$ to the person, otherwise it will only be able to receive money.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
|
Thank you
07-29-2005 07:53
Thank you all for your help
I didnt quite get the permissions right but realized I needed them thanks Jesrad Thank you Catherine, that was a GREAT help. |