error 018: initialization data exceeds declared size
#10

sizeof ZoneInfo is one.

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}
};
This:
pawn Code:
new ZoneAttacker[sizeof(ZoneInfo)]={-1,...);//sizeof is returning 1
Is the same as:
pawn Code:
new ZoneAttacker[1]={-1,...);//cant store more than one value if the size is 1
which is more or less the same as:
pawn Code:
new ZoneAttacker[1]={1,2,3);
I hope you can see what your doing wrong.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)