There is an error, if you donate negative ammounts, you actual steal from them. Anyone know how to fix this? I did this, but it didn't work:
PHP Code:
if($ammount < 0 ) {
eval("dooutput(\"".gettemplate("itemshop_negative")."\");");
exit;
after this:
eval("dooutput(\"".gettemplate("itemshop_donate-error")."\");");
exit;
} else {
could someone tell me what i did wrong in fixing this?
EDIT: here it is, i fixed it. Everyone add this:
PHP Code:
if($ammount < -1 ) {
eval("dooutput(\"".gettemplate("itemshop_negative")."\");");
exit;
}
After this:
PHP Code:
if (isset($iddonate)) {
if($points >= $amount) {
Create a new template called itemshop_negative. Put this in it:
PHP Code:
You cannot donate a negative ammount!