SA-MP Forums Archive
Always getting Error 079 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Always getting Error 079 (/showthread.php?tid=269410)



Always getting Error 079 - NRJ53 - 16.07.2011

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?


Re: Always getting Error 079 - THE_KNOWN - 16.07.2011

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


Re: Always getting Error 079 - Vince - 16.07.2011

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.


Re: Always getting Error 079 - NRJ53 - 16.07.2011

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?!?!?