Hello,
1 - I'm trying to set attributes to a variable.
If I leave it like that, I'll get the error that flag is an unitialized variable.PHP Code:
flag[i].points = 0; //positive - allies are conquering; negative - axis is conquering
flag[i].team = 0; //-1 for axis, 0 for neutral, 1 for allies
If I add flag = []; or flag = 1; I'll get the error that undefined is not a field object or int is not a field object.
Any help here?
2 - Is there any way to use a 2D matrix, like in C?
Code:flag[i][j] = 1;