Raised This Month: $ Target: $400
 0% 

get_user_flags question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-16-2014 , 00:48   Re: get_user_flags question
Reply With Quote #4

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], charsmaxg_szUsersFlags[] ));
    }

Or if you want to print it some times :

PHP Code:
Some_Functionid )
{
    new 
szStringFlags[27];
    
get_user_flags_string(idszStringFlagscharsmax(szStringFlags));
    
client_print(idprint_chat"Your flags are : %s"szStringFlags);
}

get_user_flags_string(idszFlags[], len)
{
    return 
get_flags(get_user_flags(id), szFlagslen);


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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode