Always getting Error 079
#1

Hi there,

I keep getting these errors:
pawn Code:
(26662) : error 079: inconsistent return types (array & non-array)
(26672) : error 079: inconsistent return types (array & non-array)
(26678) : error 079: inconsistent return types (array & non-array)
(26695) : error 079: inconsistent return types (array & non-array)
(26714) : error 079: inconsistent return types (array & non-array)
(26756) : error 079: inconsistent return types (array & non-array)
(26763) : error 079: inconsistent return types (array & non-array)
(26769) : error 079: inconsistent return types (array & non-array)
(26774) : error 079: inconsistent return types (array & non-array)
(26778) : error 079: inconsistent return types (array & non-array)
(26826) : error 079: inconsistent return types (array & non-array)
(26836) : error 079: inconsistent return types (array & non-array)
(26842) : error 079: inconsistent return types (array & non-array)
(26847) : error 079: inconsistent return types (array & non-array)
(26857) : error 079: inconsistent return types (array & non-array)
(26871) : error 079: inconsistent return types (array & non-array)
(26876) : error 079: inconsistent return types (array & non-array)
(26881) : error 079: inconsistent return types (array & non-array)
On them lines theres
pawn Code:
return 1;
- or -
return 0;
How can i fix?
Reply
#2

no idea on how to fix. but searched for them tho:

https://sampforum.blast.hk/showthread.php?tid=171851

https://sampforum.blast.hk/showthread.php?tid=154821

https://sampforum.blast.hk/showthread.php?tid=92071

remember ****** is your friend
Reply
#3

Means you do something like:
pawn Code:
MyFunction()
{
    if(somevalue)
    {
        return 1;
    }
    new string[64] = "a text";
    return string;
}
In one function, all return types must be consistent (that's what the error says). So you need to return all arrays (strings), all integers or all floats, but not a combination of them.
Reply
#4

Quote:
Originally Posted by Vince
View Post
Means you do something like:
pawn Code:
MyFunction()
{
    if(somevalue)
    {
        return 1;
    }
    new string[64] = "a text";
    return string;
}
In one function, all return types must be consistent (that's what the error says). So you need to return all arrays (strings), all integers or all floats, but not a combination of them.
I've gone through the script and there now return 1/0;
It was commands like
pawn Code:
return SendClient...
Still there though?!?!?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)