下面是引用 岳岳 於 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的用意是控制它只顯示到二位小數...