31.03.2013, 14:41
If any of the variables are blank, it will say that they matched.
Requires an isnull function which ZCMD automatically adds to your script. Usage:
That will return true.
pawn Code:
strsame(firstString[], secondString[], bool: caseSensitive = false)
{
if(isnull(firstString) || isnull(secondString)) return 0;
return !strcmp(firstString, secondString, caseSensitive);
}
pawn Code:
if(strsame("Hello", "Hello"))