Returning string from array
#1

Code:
new strArr[][] = {
    "one",
    "two",
    "three"
};

stock GetStringArray(index)
{
    return strArr[index];
}
Why does print(GetStringArray(0)); show "(null)"?
Reply


Messages In This Thread
Returning string from array - by IllidanS4 - 05.09.2015, 12:22
Re: Returning string from array - by Freezo - 05.09.2015, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)