[Solved] Returning string
#1

Hey,
My code:
pawn Код:
stock MembersOfGang(GangName[])
{
    if(!dini_Exists(GangName)) return -1; //Line 61
    new str[MAX_STRING];
    str = dini_Get(GangName,"Members");
    return str;
}
And I get

Quote:

Gangs.inc(61) : error 079: inconsistent return types (array & non-array)

If I change return 1; at the end, It won't show me that error, but I need to return str...
Reply


Messages In This Thread
[Solved] Returning string - by SiJ - 05.08.2009, 09:17
Re: [Help] Returning string - by yezizhu - 05.08.2009, 09:40
Re: [Solved] Returning string - by SiJ - 05.08.2009, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)