02.10.2011, 10:53
Hello all,
I get this error:
And this is the part of the script
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
I get this error:
Code:
error 079: inconsistent return types (array & non-array)
Code:
stock HouseFile(houseid) { new string[10]; format(string, sizeof(string), HOUSEPATH, houseid); if(fexist(string)) { return string; } else { 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