14.07.2015, 15:40
Hello, I have a little problem. I have defined isnull function. It works without any problem for usual string:
But I want to check string like this, but it gives me compile error.
So, I have loop to check offset of params in command, and I want to check it, if it's null, but it gives me errors ^. Thanks.
pawn Код:
new string[] = "Hello.";
if(isnull(string))
{
//Works
}
pawn Код:
if(isnull(cmdtext[i + 1]))
{
//Compile errors
}
//Also this works:
if(!strlen(cmdtext[i + 1]))
{
//Works
}