#1
|
|||
|
|||
Donation System Problem
First of all I want to clarify that I am using the google translator, so I might not express correctly because I do not speak English (I'm Spanish)
The problem with the donation system is that if I enter an amount of money that I haven`t anyway reaches the user who I send it. Example: I have only $100, but I donated $10000 to X, the other user (X) will get $10000. Also happens with negative numbers. I hope you understand the problem Thank you very much and best regards PS: Im using the version 1.2.2 |
#2
|
||||
|
||||
Seems someone forgot to add a check to be sure that the amount being sent isn't more than the user has. x.x
|
#3
|
|||
|
|||
Well experiencing some can resolve the problem that you can donate more than you have (I should clarify that I am not a programmer, not absolutely nothing about programming and what I did was rather a bit of "deduction"). Only a conditional solves that problem, but not that of the negative numbers.
Search: Code:
if($_POST) Code:
if($amount < $money){ Code:
else { $article_title = $accden; $article_content = $reqlogin; } Code:
else { $article_title = $accden; $article_content = "No puedes donar mas de lo que tienes"; } } |
#4
|
||||
|
||||
Well its not that hard to fix, I make sure the bug does not exist in next release. All you have to do is to add a check point which prevent execution of the donation script if the user does not have enough money left.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
Tags |
donation, problem |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Donation Dragons/ Custom Dragons | Kamalya | Questions and Supports | 2 | 03-14-2013 09:25 AM |
Trading System | ChibiMaestro | Questions and Supports | 3 | 09-06-2011 05:14 PM |
evolution system for 1.2.x? | sensacion | Questions and Supports | 2 | 07-06-2011 11:49 AM |
Breeding System | Steelghost600 | Questions and Supports | 4 | 10-25-2009 02:38 PM |
Donation Question? | assflusher | Questions and Supports | 7 | 02-11-2009 08:20 PM |
What's New? |
What's Hot? |
What's Popular? |