Valuenames in Valuenames like PHP (rValue$i)?
#1

Hi all,

i knew, my title is a bit serious but here my problem:

f.e.:
Код:
while(i< sizeof(FrakInfo))
{
          format(string,sizeof(string),"Value: %d:\t[%s$}",i,FrakInfo[i][rValue1]);
          i++;
}
So now my question: Is there are posebility to do things like php so that you can loop with the while function all values of the enum "FrakInfo[id][rValue1-12]"

In php there are things like:

$test = rValue$i

or so, is there in samp also a possebility?
Sry for my bad englisch ,

MfG. Cody09
Reply
#2

Quote:
Originally Posted by C0dy09
Посмотреть сообщение
Hi all,

i knew, my title is a bit serious but here my problem:

f.e.:
Код:
while(i< sizeof(FrakInfo))
{
          format(string,sizeof(string),"Value: %d:\t[%s$}",i,FrakInfo[i][rValue1]);
          i++;
}
So now my question: Is there are posebility to do things like php so that you can loop with the while function all values of the enum "FrakInfo[id][rValue1-12]"

In php there are things like:

$test = rValue$i

or so, is there in samp also a possebility?
Sry for my bad englisch ,

MfG. Cody09
No, It's very sad, but you can't.
You can still create variable like this:
pawn Код:
enum ehm
{
   rValue[12]
}
new FrakInfo[i][ehm];
And then use it like this:
pawn Код:
for(new l=1; l< 13; l++) FrakInfo[i][rValue][l]=0;
Cheers.
Reply
#3

Hm ok, but thank you, Iґll use yourґs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)