PHP Code:
public client_putinserver(id) {
set_task(2.0, "somefunc, id, _, _, "b")
}
public client_disconnect(id)
remove_task(id)
public somefunc(id) {
static g_name[32]
get_user_name(id, g_name, charsmax(name))
set_hudmessage(210, 105, 30, 0.01, 0.76, 0, _, 1.9,_, 0.1, -1 )
show_hudmessage(id, "Your name: %s", g_name)
}
Use this instead. You dont need the variable to be global ... In this way you shouldnt have problems with the nick anymore ..
__________________