Returning string from array
#2

I don't know what the hell is that, but its printed $one $one $one for me, but i see that your stock function is pointless, you can use it directly or using a define.

Code:
#define getNum(%0)	numberPrint[%0]

new const numberPrint[][] = {
	"one",
	"two",
	"three"
}
getNum(0), getNum(1), getNum(2)
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: 3 Guest(s)