|
发表于 2009-7-27 22:46:56
|
显示全部楼层
来自 中国–广东–东莞
本帖最后由 kk阿朗 于 2009-7-27 22:48 编辑
不好意思,少了个函数!
- new players[32], pnum
- get_players(players, pnum)
- for (new i = 1; i < pnum; i++)
- {
- new id = players[i]
- new i_deaths = get_user_deaths(id)
- new i_frags = get_user_frags(id)
- client_print(id, print_chat, "this is a example, your kill %d, and death %d times", i_frags, i_deaths)
- }
复制代码 还想顺便请教一下R版
上我这个跟你那究竟哪个会好一点?- new i_deaths, i_frags
- new maxplayers = get_maxplayers();
- for (new i_player=1; i_player<=maxplayers; i_player++)
- {
- if(!is_user_connected(i_player)) continue;
- i_deaths = get_user_deaths(i_player)
- client_print(i_player, print_chat, "*******%d*******!.", i_deaths)
- i_frags = get_user_frags( i_player)
- client_print(i_player, print_chat, "*******%d*******!.", i_frags)
- }
复制代码 |
|