You need to change this
Code:
public event_round_start()
{
for(new i = 0; i < 32; i++)
havetk[i] = 0
}
To this:
Code:
public event_round_start()
{
static i, max_players
if (!max_players) max_players = get_maxplayers()
for(i = 1; i <= max_players; i++)
if (is_user_connected(i)) havetk[i] = 0
}
Or for setting havetk[i] to 0 you can use arrayset( ... ) native to achieve your goal
And change this:
Code:
public zp_extra_item_selected(id, itemid)
{
if (itemid == g_tknife)
havetk[id] = 1
client_print(id, print_chat, "[ZP] You got Thunder Knife! Slash a Zombie to kill him with thunder")
return PLUGIN_CONTINUE;
}
To this:
Code:
public zp_extra_item_selected(id, itemid)
{
if (itemid == g_tknife)
{
havetk[id] = 1
client_print(id, print_chat, "[ZP] You got Thunder Knife! Slash a Zombie to kill him with thunder")
}
}
Or else the if statement wouldnt be properly read by the compiler
__________________