廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 2132 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
waipun
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x5 鮮花 x10
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[1.6][插件] 請問我的sma有什麼問題




複製程式
#include <amxmodx> 
#include <empty> 
#include <hamsandwich> 

new gash[33] 

public plugin_natives() 
{ 
register_native("ep_check_player_gash", "native_check_player_gash", 1) 
register_native("ep_set_player_gash", "native_set_player_gash", 1) 
} 

public plugin_init() 
{ 
register_plugin("gash", "1.0", "waipun") 
RegisterHam(Ham_Killed, "player", "fw_Player_kill") 
} 

public client_connect(id) 
{ 
set_hudmessage(200, 100, 0, 3.0, 0.35, 0, 6.0, 0.0, 0.1, 0.2,4) 
show_hudmessage(id,gash: %d,gash[id]) 
} 

public native_set_player_gash(id, set_gash) 
{ 
gash[id] = set_gash 
return PLUGIN_CONTINUE 
} 
public native_check_player_gash(id) 
{ 
return gash[id] 
} 
public fw_Player_kill(victim, attacker, shouldgib) 
{ 
gash[attacker]+1
return PLUGIN_CONTINUE 
}



怎寫amxx
獻花 x0 回到頂端 [樓 主] From:香港城市電訊 | Posted:2011-07-28 17:45 |
史來姆
個人文章 個人相簿 個人日記 個人地圖
特殊貢獻獎
小有名氣
級別: 小有名氣 該用戶目前不上站
推文 x370 鮮花 x529
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

show_hudmessage是顯示出string吧
string應有的" "去哪了


獻花 x0 回到頂端 [1 樓] From:香港網上行 | Posted:2011-07-28 17:53 |
承。諾
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x7 鮮花 x39
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

gash[attacker]+1

應該是

gash[attacker] += 1



獻花 x0 回到頂端 [2 樓] From:美國ATT用戶 | Posted:2011-07-28 23:30 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.022822 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言