Hello.
I did a array:
When you choose the first item in my menu, 1 item in the array shout be 1.
PHP Code:
switch(key, id)
{
case 1:
{
set_user_gravity(id, 0.5)
class[id] = 1
client_print(id, print_chat, "[FM] You are a Sonic now!");
menu_destroy(menu_class);
return PLUGIN_HANDLED;
}
}
so, i registerd a event, that is called when a new round beginns. In this event i wrote:
PHP Code:
public event_new_round(id)
{
client_print(id, print_chat, "%i <- Shout be 1 cause i set it to 1", class[id])
return PLUGIN_CONTINUE
}
BUT I GOT ALWAYS 0 instead 1
can you tell me why?