16.01.2013, 11:13
The error
usually tells you that you have a function or callback which returns arrays or non-arrays in different cases.
Example:
This would either return j, which is an integer, or i, which is a string (which technically is an array).
However, 26 errors is just the maximum amounts of errors the compiler will show you. You can have a lot more than only 26. This is most often caused by a missing closing brace somewhere.
Make sure to indent your code to find missing braces.
Quote:
error 079: inconsistent return types (array & non-array) |
Example:
pawn Код:
myFunc()
{
new
i[] = "test",
j = random( 5 );
if( j < 3 )
return j;
else
return i;
}
However, 26 errors is just the maximum amounts of errors the compiler will show you. You can have a lot more than only 26. This is most often caused by a missing closing brace somewhere.
Make sure to indent your code to find missing braces.