error 018: initialization data exceeds declared size - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 018: initialization data exceeds declared size (
/showthread.php?tid=254070)
error 018: initialization data exceeds declared size -
anant - 09.05.2011
pawn Код:
new Float:gRandomHospitalSpawns[2][4] = {
{-3439.2871,476.0846,57.6204},
{-3443.1304,498.4368,57.6132}
};
wth?
Re: error 018: initialization data exceeds declared size -
Backwardsman97 - 09.05.2011
Sometimes arrays can be weird. Try changing around the numbers. Like making 4, 3 etc..
Re: error 018: initialization data exceeds declared size -
anant - 09.05.2011
No proper fix? just "try's"? :/
Re: error 018: initialization data exceeds declared size -
(SF)Noobanatior - 09.05.2011
Код:
new Float:gRandomHospitalSpawns[2][3] = {
{-3439.2871,476.0846,57.6204},
{-3443.1304,498.4368,57.6132}
};
2 down\
by x y z (3 wide)
hence [2][3]
Re: error 018: initialization data exceeds declared size -
Cameltoe - 09.05.2011
Quote:
Originally Posted by (SF)Noobanatior
Код:
new Float:gRandomHospitalSpawns[2][3] = {
{-3439.2871,476.0846,57.6204},
{-3443.1304,498.4368,57.6132}
};
2 down\
by x y z (3 wide)
hence [2][3]
|
you could also change the int "2" to nothing :
pawn Код:
new Float:gRandomHospitalSpawns[][3] = {
{-3439.2871,476.0846,57.6204},
{-3443.1304,498.4368,57.6132}
};
but the problem is as you stated "3 wide, and not 4".