我写了一个MetaHook的计分版插件
部分代码:
复制程式
public team_score()
{
new team[32]
read_data(1, team, 31)
if (equal(team, "CT"))
{
g_score_ct = read_data(2)
}
else if (equal(team, "TERRORIST"))
{
g_score_t = read_data(2)
}
}
public show_score()
{
for (new id = 1; id <= get_maxplayers();id++)
{
if (!is_user_connected(id) || is_user_bot(id) || !MH_IsMetaHookPlayer(id)) continue;
MH_DrawScoreBoard(id, "SBOriginalBG", g_score_t, g_score_t+g_score_ct, g_score_ct, GetTotalPlayer(1), GetTotalPlayer(2), 1)
}
}
转档错误
Error: Argument type mismatch (argument 2) on line 31
这问题到底怎么修呢?
有需要完整代码跟我说
谢谢!