Or you can make this way too
PHP Code:
new g_SelectedAuthId[32]
public function(id)
{
//bla bla
new szID[32]
get_user_authid(target, szID, charsmax(szID))
if(is_user_connected(target))
{
copy(g_SelectedAuthId, 31, szID)
}
}
public AnotherFunction(id)
{
client_print(0, print_chat, "%s", g_SelectedAuthId)
g_SelectedAuthId[0] = 0
}
Or i am wrong?