08.06.2012, 14:23
(
Last edited by iggy1; 08/06/2012 at 02:37 PM.
Reason: More readable.
)
sizeof ZoneInfo is one.
This:
Is the same as:
which is more or less the same as:
I hope you can see what your doing wrong.
pawn Code:
new ZoneInfo[1][pInfo] = {//sizeof(ZoneInfo) will return the size of the first dimension
{1976.0409,-1351.8186,1862.2743,-1450.5481,COLOR_GRAY}
};
pawn Code:
new ZoneAttacker[sizeof(ZoneInfo)]={-1,...);//sizeof is returning 1
pawn Code:
new ZoneAttacker[1]={-1,...);//cant store more than one value if the size is 1
pawn Code:
new ZoneAttacker[1]={1,2,3);