error 079: inconsistent return types (array & non-array)
#1

Hello all,
I get this error:
Code:
error 079: inconsistent return types (array & non-array)
And this is the part of the script
Code:
stock HouseFile(houseid) {
new string[10];
format(string, sizeof(string), HOUSEPATH, houseid);
if(fexist(string)) {
	return string;
	} else {
	return 0;
}
}
The error is on the line: return 0;
I can just return a string, but i don't want to return only a string, it needs to check if the file exists or not!
Please help me
Thanks
Reply


Messages In This Thread
error 079: inconsistent return types (array & non-array) - by Stefans94 - 02.10.2011, 10:53
Re: error 079: inconsistent return types (array & non-array) - by Jafet_Macario - 02.10.2011, 11:03
Re: error 079: inconsistent return types (array & non-array) - by Pharrel - 02.10.2011, 11:05
Re: error 079: inconsistent return types (array & non-array) - by Stefans94 - 02.10.2011, 11:19
Re: error 079: inconsistent return types (array & non-array) - by GTLS - 18.05.2015, 07:34

Forum Jump:


Users browsing this thread: 3 Guest(s)