20.07.2017, 10:12
PHP код:
enum RndEnum{
val,
val1
};
new RndArr[100][RndEnum];
enum RndEnum{
val,
val1
};
new RndArr[100][RndEnum];
static const empty_player[RndEnum]; RndArr[playerid] = empty_player;
//only works for single dimensional arrarys
new myValue[100] = {-1, ...};
//now all indexes of the above array has value '-1'
new myValues[2][3] = {
{0,0,-1},
{0,0,-1}
};
enum RndEnum{
val,
val1
};
new RndArr[100][RndEnum] = {
{ -1, 0 }, ...
};