搜索
查看: 1604|回复: 0

跪求解决办法

[复制链接]
发表于 2008-2-22 04:36:14 | 显示全部楼层 |阅读模式 来自 中国–内蒙古–锡林郭勒盟–锡林浩特市
l_Score 是从数据库里读出来的分数,现在的问题是,不想用amxx自己代的排名而是按数据库里的分数给他配军衔,列排名.可以这样想,如果他的分数<0就是新兵,分数>= 10 就是 一等兵,并把军衔附值给变量 l_Place ,大家看看这里我的怎么写,再就是怎么样才能取得一个人在数据库里的排名?


if l_Score ="" then l_Place = 新兵
if l_Score < 0 then l_Place = 新兵
if l_Score >= 0 then l_Place = 列兵
if l_Score >= 10 then l_Place = 一等兵
if l_Score >= 50 then l_Place = 下士
if l_Score >= 100 then l_Place = 中士
if l_Score >= 150 then l_Place = 上士
if l_Score >= 200 then l_Place = 参谋军士
if l_Score >= 250 then l_Place = 军士长
if l_Score >= 300 then l_Place = 少尉
if l_Score >= 350 then l_Place = 中尉
if l_Score >= 400 then l_Place = 上尉
if l_Score >= 450 then l_Place = 少校
if l_Score >= 500 then l_Place = 中校
if l_Score >= 550 then l_Place = 上校
if l_Score >= 600 then l_Place = 准将
if l_Score >= 650 then l_Place = 少将
if l_Score >= 700 then l_Place = 中将
if l_Score >= 750 then l_Place = 上将
if l_Score >= 800 then l_Place = 五星上将
if l_Score >= 1000 then l_Place = 大元帅

谁给我把这些ASP的原码转成amxx的原码,谢谢,
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表