get_user_flags question
Hi, I'm wondering how can I get user flags into a global variable like g_cPlayerFlags[ 33 ][ 32 ];
not like this: new iFlags = get_user_flags( iPlayer ) |
Re: get_user_flags question
PHP Code:
|
Re: get_user_flags question
Explain exactly what your trying to do.
|
Re: get_user_flags question
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:
PHP Code:
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. |
Re: get_user_flags question
Did you know that in structure (1 << K), K might be from 0 to 31? If you don't want more than 32 characters, then a numerical variable is enough.
In case you have more than 32 characters, you should do something like this: new Flags[33][128]; new Client = GetRandomClient(); // an example. formatex(Flags[Client], charsmax(Flags[]), "%s", "abcdefghijklmnopqrstu1234567890-=\[];',./_+|{}:^"<>?`~!@#$%^^&*()"); // note that ^" means " and ^^ means ^ for real, in a string. if (containi(Flags[Client], "#") != -1) { // client got # flag. } |
Re: get_user_flags question
Quote:
|
Re: get_user_flags question
Quote:
|
| All times are GMT -4. The time now is 10:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.