It's simple, but I want to know which way is better:
PHP Code:
public client_putinserver( id )
{
new name[32]
get_user_name(id, name, sizeof(name) - 1)
client_print(id, print_chat, "%s has entered ..", name)
}
or
PHP Code:
public client_putinserver( id )
{
static name[32]
get_user_name(id, name, sizeof(name) - 1)
client_print(id, print_chat, "%s has entered ..", name)
}
In these case, which is better: static or new? (its just an example, it not necesarily has to be the name) and why..