Quote:
Originally Posted by CsIosefin
Why not work? I mean if you are not admin, to type normally ... why?
I have not really with ELSE ... and I so want an explanation.
Code:
for (new i = 0; i < 8; i++)
{
if (get_user_flags(id) == read_flags(Flags[i]))
{
if(is_user_alive(id) || !is_user_alive(id))
{
chat(0, "!y[ %s ] !team*%s* !g%s !y: !team%s", Name[i], (is_user_alive(id) ? "ALIVE" : "DEAD"), name, mes);
}
}
else
if(is_user_alive(id) || !is_user_alive(id))
{
chat(0, "!team*%s* !g%s !y: !team%s", (is_user_alive(id) ? "ALIVE" : "DEAD"), name, mes);
}
}
}
|
You will need to show your whole code to get the best help. The issue is probably with "get_user_flags(id) == read_flags(Flags[i])".
Also, what was your intention here:
PHP Code:
if(is_user_alive(id) || !is_user_alive(id))
It's [almost] useless as it is there.
So, explain exactly what you want this whole code snippet to do because I'm 100 percent sure that if I "fix" your code it won't work as you expect it to work.
__________________