Good afternoon.
Help fix the error and tell me whether written a plugin?
//// vote.sma
// D:\unstal\cs\Compiler 1.8.1\vote.sma(35) : error 088: number of argum
ents does not match definition
//
// 1 Error.
// Could not locate output file compiled\vote.amx (compile failed).
//
// Compilation Time: 0,09 sec
// ----------------------------------------
Code:
#include <amxmodx>
#include <nvault>
#include <cstrike>
#include <fun>
new g_Hskill[33]
new g_Vault
public plugin_init()
{
register_event("DeathMsg", "hook_death", "a")
}
public plugin_cfg()
{
g_Vault = nvault_open("hsvault")
if (g_Vault == INVALID_HANDLE)
set_fail_state("Error opening nVault!")
}
public plugin_end()
{
nvault_close(g_Vault)
}
public hook_death()
{
new nKiller = read_data(1)
new victim = read_data(2);
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
g_Hskill[nKiller]++
nvault_set(g_Vault, (g_Hskill[nKiller]))
}
}
public chek_hs(id)
{
nvault_get(g_Vault,g_Hskill[id])
set_hudmessage(0, 255, 0, -1.0, 0.86, 0, 6.0, 2.0)
show_hudmessage(id, "У вас %s хедшетов", g_Hskill[id])
}