Quote:
Originally Posted by KliPPy
PHP Code:
if(name & req_tag)
In which programming language have you seen that? If I am right, you want to check if name variable contains cvar value(string)?
If so, the code should look like:
PHP Code:
new req_tag[12];
get_pcvar_string(tag, req_tag, charsmax(req_tag)); // this is how you retrieve cvar string value
if(containi(name, req_tag)) // or use contain() for case-sensitive check
{
// Do something
}
|
I have never seen that, but I'm a begginer in this and I really couldn't think of another way of doing it. Thank you so much for teaching me that! That's what I'll do from now on.
__________________