好吧,我为我的游戏制作了一个成就系统。我有一个银行一定数额的成就。好吧,当他们存入一定金额时,您将在用户墙上发布成就。但是,当您提取现金时,成就将消失。这是下面的编码。那么,即使在现金从用户银行账户中消失后,我如何才能将其修复到成就将保留的位置呢?
<?php
if ( $userp['bank_account'] >= 100000 )
{
echo
'<img src="achievements/Diamond-Bank.png" hspace="5" width="65" height="65" title="Diamond Banker: Made a deposit of $100,000 or more!"">';
}
elseif ( $userp['bank_account'] >= 50000 )
{
echo
'<img src="achievements/Gold-Bank.png" hspace="5" width="65" height="65" title="Golden Banker: Made a deposit of $50,000 of more."">';
}
elseif ( $userp['bank_account'] >= 1000 )
{
echo
'<img src="achievements/Silver-Bank.png" hspace="5" width="65" height="65" title="Silver Banker: Made a deposit of $1,000 or more."">';
}
elseif ( $userp['bank_account'] >= 1 )
{
echo
'<img src="achievements/Bronze-Bank.png" hspace="5" width="65" height="65" title="Bronze Banker: Opened a bank account!"">';
}
?>