搜索
查看: 1149|回复: 0

请代码高手帮帮忙。

[复制链接]
发表于 2007-4-11 02:47:12 | 显示全部楼层 |阅读模式 来自 中国–广西–柳州–柳北区
new imax = get_statsnum()
new name[32]
get_user_name(id,name,31)
new health = get_user_health(id)
new armor = get_user_armor(id)
new data[8]
new rank = get_user_stats(id,data,data)
if (imax > 10) imax = 10
for(new a = 0; a < imax; ++a){
pos += format(g_Buffer[pos],2047-pos,"【元帅】 : %s^n【血】 : %d|【甲】 : %d|【排名】 : %d^n",name,health,armor,rank )
}
if (imax > 50 ) imax = 50
for(new a = 0; a < imax; ++a){
pos += format(g_Buffer[pos],2047-pos,"【上将?: %s^n【血?: %d|【甲?: %d|【排名?: %d^n",name,health,armor,rank )
}
if (imax > 100) imax = 100
for(new a = 0; a < imax; ++a){
pos += format(g_Buffer[pos],2047-pos,"【上尉?: %s^n【血?: %d|【甲?: %d|【排名?: %d^n",name,health,armor,rank )
}
if (imax > 500) imax = 500
for(new a = 0; a < imax; ++a){
pos += format(g_Buffer[pos],2047-pos,"【中尉?: %s^n【血?: %d|【甲?: %d|【排名?: %d^n",name,health,armor,rank )
}
if (imax > 1000) imax = 1000
for(new a = 0; a < imax; ++a){
pos += format(g_Buffer[pos],2047-pos,"【少尉?: %s^n【血?: %d|【甲?: %d|【排名?: %d^n",name,health,armor,rank )
希望效果是10名之内呢称用元帅,50名以内用上将等等,可显示总是不行,代码不是很懂,求各位大侠帮忙,万分感谢。
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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