If you want to always have strings filled (i doubt you need, that's why you have to clearly explain why you want this) :
PHP Code:
new g_szUsersFlags[32][27];
public client_infochanged(id)
{
if( is_user_connected(id) && !is_user_bot(id) )
{
get_flags(get_user_flags(id), g_szUsersFlags[id], charsmax( g_szUsersFlags[] ));
}
}
Or if you want to print it some times :
PHP Code:
Some_Function( id )
{
new szStringFlags[27];
get_user_flags_string(id, szStringFlags, charsmax(szStringFlags));
client_print(id, print_chat, "Your flags are : %s", szStringFlags);
}
get_user_flags_string(id, szFlags[], len)
{
return get_flags(get_user_flags(id), szFlags, len);
}
Also, if you are learning amxx coding, you should have wondered where you could have find the solution by yourself, so you should have thought about amx_who command that is showing players flags as strings in player console, and then you should have browse its plugin source.
__________________