引用 | 編輯
andyt0621
2011-04-03 17:52 |
樓主
▼ |
||
x0
我寫一個native..寫的是喪屍的擊退(g_zombie_knockback).. 但是一直tag mismatch.. 要用floatround才成功.. 但這樣就不是正確的擊退數值了=.= x0
|
引用 | 編輯
Abcdzxc555
2011-04-04 17:02 |
1樓
▲ ▼ |
public Float:native_XXXXX(id)
{ } 試試看 x0 |
引用 | 編輯
andyt0621
2011-04-04 18:30 |
2樓
▲ ▼ |
我試用了這個方法..
然後直接用該native(沒有float(xxxx)).. 轉amxx出現tag mismatch.. 但運行正常.. 當用該native加上float / *1.0 .. 擊退數值出現一個極大的數=.= x0 |
引用 | 編輯
Abcdzxc555
2011-04-04 23:23 |
3樓
▲ |
請問有否記得在把native寫成
native Float:XXXXX 例: native Float:asdasd(id) x1 |