Weird error - 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: Weird error (
/showthread.php?tid=142879)
Weird error -
remyguys - 20.04.2010
I get this error and i haven't seen it before.
Any idea how to fix it?
C:\Users\Remy\Downloads\samp03asvr_R7_win32\filter scripts\Carsystem.pwn(136) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Pastebin Script :
http://pastebin.com/DyNMbcsV
Re: Weird error -
M4S7ERMIND - 20.04.2010
Quote:
Originally Posted by remyguys
error 052: multi-dimensional arrays must be fully initialized
|
Random code:
pawn Код:
new Values[4][3] =
{
{100, 200, 300},
{200, 300, 100},
{300, 100, 200}
};
replacing
Values[4][3] to
Values[3][3] will fix the error.
Also, the code below is waste of space and your script is full of that:
pawn Код:
new Values[3][1] =
{
{100},
{200},
{300}
};
This is all you need:
pawn Код:
new Values[3] = { 100, 200, 300 };