Parent Directory
|
Revision Log
*** empty log message ***
| 1 | sysadm | 1.1 | #include "bbs.h" |
| 2 | |||
| 3 | int inmoney(unsigned int money) { | ||
| 4 | if(BBS_user_money + money < 400000000) | ||
| 5 | BBS_user_money += money ; | ||
| 6 | else | ||
| 7 | BBS_user_money = 400000000; | ||
| 8 | return BBS_user_money; | ||
| 9 | } | ||
| 10 | |||
| 11 | int demoney(unsigned int money) { | ||
| 12 | if(BBS_user_money > money ) | ||
| 13 | BBS_user_money -= money; | ||
| 14 | else | ||
| 15 | BBS_user_money = 0; | ||
| 16 | return BBS_user_money; | ||
| 17 | } |
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |