Data structures in Pawn
#13

@MadeMan

that always been a question of mine :X e.g.
pawn Код:
enum tempinfo{
   variable1,variable2,
}
new Array0[2][tempinfo];
AND

pawn Код:
enum pinfo{
   variable1,variable2,
}
new Array1[2][pinfo];
and ..
i use like :
pawn Код:
Array1[0][variable1] = somevalue;//variable 1 belong to enum 'tempinfo'
Array2[0][variable1] = somevalue;//variable 1 belong to enum 'pinfo'
that would work i guess ?

and if it is in the following way it wouldn't, for sure right? :
pawn Код:
enum info{
   variable1,variable2,
}
new Array0[2][info];
//and
new Array1[2][info];
and use like:
pawn Код:
Array0[2][variable1] = somevalue;//variable 1 belong to enum 'info'
Array1[2][variable1] = somevalue;//this variable also belong to enum 'info'
^ or not ?

i am lately very confused regarding them..
Reply


Messages In This Thread
Data structures in Pawn - by MadeMan - 19.10.2012, 18:14
Re: Data structures in Pawn - by MadeMan - 19.10.2012, 18:36
Re: Data structures in Pawn - by lorizz - 19.10.2012, 21:15
Re: Data structures in Pawn - by Steven82 - 20.10.2012, 07:34
Re: Data structures in Pawn - by playbox12 - 20.10.2012, 10:09
Re: Data structures in Pawn - by MadeMan - 20.10.2012, 10:20
Re: Data structures in Pawn - by SuperViper - 20.10.2012, 15:00
Re: Data structures in Pawn - by MadeMan - 03.11.2012, 17:39
Re: Data structures in Pawn - by Finn - 03.11.2012, 17:54
Re: Data structures in Pawn - by MadeMan - 03.11.2012, 18:39
Re: Data structures in Pawn - by Michael@Belgium - 03.11.2012, 19:04
Re: Data structures in Pawn - by Finn - 03.11.2012, 19:32
Re: Data structures in Pawn - by Niko_boy - 04.11.2012, 05:01
Re: Data structures in Pawn - by [ABK]Antonio - 04.11.2012, 05:32
Re: Data structures in Pawn - by MadeMan - 04.11.2012, 08:41
Re: Data structures in Pawn - by Y_Less - 04.11.2012, 09:02
Re: Data structures in Pawn - by MadeMan - 04.11.2012, 11:24

Forum Jump:


Users browsing this thread: 2 Guest(s)