Quote:
Originally Posted by Kat-Sybermoms
OK, with people being able to steal from each other, I want to prevent the balance from going into the negative. How do I do that? I read the thread, and noticed it was asked, but I want to allow my members to negatively donate, but don't want their balance to go below zero. So if one member has 400 points, I don't want someone to be able to "steal" 500 from them and put that person at -100 points.
|
where this was
PHP Code:
if ($amount < 0 || $amount == 0) {
eval(standard_error(fetch_error('error_icash_sendmsomthing')));
}
Make a query that calls the member who you are stealing/donating from
lets call it $theiramount
replace it with somthing like
PHP Code:
if ($theirammount - $amount = 0 || $theiramount - $amount < 0) {
eval(standard_error(fetch_error('error_icash_errorhere')));
}
Sorry, typed this up quickly, will type up somthing more useful when i get home. maybe somone will beat me to it :P