SA-MP Forums Archive
Error 018 - 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)
+--- Thread: Error 018 (/showthread.php?tid=348009)



Error 018 - Toshh - 03.06.2012

Alright, So I'm scripting in some random spawns, and I put this in at the top:
Код:
new Float:RandomSpawns[4][3] = {
{1709.5316,-1642.7290,20.2188,227.1651},
{1712.5449,-1673.5756,20.2247,342.3868},
{1733.7821,-1644.2037,23.7469,128.4407},
{1727.8513,-1669.7484,27.1953,24.4758},
{1718.1951,-1640.6145,27.2044,195.1813}};
But when I compile, I'm getting this error:
Код:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SAMP\gamemodes\Freeroam.pwn(39) : error 018: initialization data exceeds declared size
Can anyone help me? Been stuck on this.


Re: Error 018 - leonardo1434 - 03.06.2012

pawn Код:
new Float:RandomSpawns[][6] =
{
  {1709.5316,-1642.7290,20.2188,227.1651},
  {1712.5449,-1673.5756,20.2247,342.3868},
  {1733.7821,-1644.2037,23.7469,128.4407},
  {1727.8513,-1669.7484,27.1953,24.4758},
  {1718.1951,-1640.6145,27.2044,195.1813}
};



Re: Error 018 - Toshh - 03.06.2012

Thanks!