Parsing multiple variable into an array
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
Just use a 2d array:

pawn Код:
enum Test
{
    Var[2][25],
}
Alternatively read up on the memory layout of enums - those arrays are appended sequentially so you can work out offsets in Var_1 which are actually in Var_2.
Already tried, Couldn't get it working though.


pawn Код:
enum Test
{
     Var[2][20]; // ' error 001: expected token: "}", but found "[" '
}
new Array[50][Test]; // 3D array ftw?
Reply


Messages In This Thread
Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:30
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 22:37
Re: Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:40
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 22:50
Re: Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:54
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 23:05
Re: Parsing multiple variable into an array - by Cameltoe - 15.11.2010, 09:51
Re: Parsing multiple variable into an array - by Grim_ - 15.11.2010, 10:13
Re: Parsing multiple variable into an array - by Cameltoe - 15.11.2010, 10:23

Forum Jump:


Users browsing this thread: 2 Guest(s)