hi this is my code basically what i want is that to get the acces flags via cvar and check whether the user has that flags and execute som codes according to it hers my code
PHP Code:
new flag;
new aflags[5];
public plugin_init()
{
flag = register_cvar("acces_flag","a");
register_clcmd("say /lol","check_flags");
}
public check_flags(id)
{
get_pcvar_string(flag,aflags,charsmax(aflags));
if(get_user_flags(id) && read_flags(aflags));
{
// my code
}
}
here i want to check whether user has a ie immunity flag or not but this code is not working

please help