下面是引用 岳岳 于 2015-08-05 00:09 发表的 计算问题......,|set_pev(pev_maxspeed) 问题 (已自行解决): 
[attachment=847036]
// Native: zp_get_weapon_speed
public Float:native_get_weapon_speed(id)
.......
我想应该是这样吧....
复制程式
// Native: zp_get_weapon_speed
public native_get_weapon_speed(id)
new Float:satan_exp_effect_speed = 0.75;
client_print(0, print_chat, "ID: %d , WSP: %.2f , SP: %.2f , T: %.2f", victim, zp_get_weapon_speed(victim), satan_exp_effect_speed, float(zp_get_weapon_speed(victim) * satan_exp_effect_speed))
首先没必要的话个人不建议直接在public挂float...
然后%d只能用来显示单纯的整数...要显示小数点就要用%f...
另外我写成%.2f的用意是控制它只显示到二位小数...