Quote:
Originally Posted by Corsair
I'm not sure if I did something wrong when I changed the price of training but I absentmindedly pressed the button for training while I testing and noticed my money was in the negative.
|
Quote:
Originally Posted by lotus
@Corsair
Try adding this to see if it'll help (make sure to define $traincost):
PHP Code:
if($mysidia->user->money < $traincost) {
$document->add(new Comment(" You don't have enough money to train your companion!"));
return;
}
|
This issue came up and lotus shared the solution :)