Variable operator
#1

I was wondering if there is a way to create a linkage.

while( i = x)
if(pVar[i][Var. 'x' . ]) return code.

Basically we have an array of

pVar[value][Var1] all the way to pVar[value][Var100]

and I want to input x into the final 'pVar[value][Varx]'.

So if x = 3, then we would do the if statement with 'pVar[value][Var3]'.

I hope I made sense, is there any way we can achieve this with pawno?
Reply
#2

As far as I know, this isn't possible.
Reply
#3

Until someone can confirm a method, I've decided to use cases.

switch(x)
case 1: if(var1 = y) return code
case 2: if(var2 = y) return code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)