SA-MP Forums Archive
Complie problem - 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: Complie problem (/showthread.php?tid=424981)



Complie problem - Sweez - 24.03.2013

Hello when I try to complie i get this error:
Код:
 C:\Users\User\Desktop\New folder\filterscripts\housesb.pwn(50) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Here are my lines from 21 to 50:

Код:
	{451,"Turismo",50000},
	{541,"Bullet",50000},
	{415,"Cheetah",50000},
	{429,"Banshee",50000},
	{400,"Landstalker",6000},
	{401,"Bravura",3000},
	{402,"Buffalo",9000},
	{410,"Manana",2000},
	{412,"Voodoo",1000},
	{413,"Pony",6450},
	{415,"Cheetah",75000},
	{418,"Moonbeam",4000},
	{419,"Esperanto",2500},
	{421,"Washington",5000},
	{422,"Bobcat",7000},
	{426,"Premier",10000},
	{436,"Previon",1860},
	{439,"Stallion",5420},
	{440,"Rumpo",5550},
	{445,"Admiral",11500},
	{458,"Solair",5000},
	{461,"PCJ-600",2000},
	{462,"Faggio",500},
	{463,"Freeway",2111},
	{466,"Glendale",1000},
	{467,"Oceanic",1500},
	{468,"Sanchez",2500},
	{475,"Sabre",3000},
	{482,"Burrito",10000}
};
How can I fix that problem ?


Re: Complie problem - Misiur - 24.03.2013

Higher you should have something like
pawn Код:
new Somename[123][someOtherName] = {
(names may vary)
change it to
pawn Код:
new Somename[][someOtherName] = {



Re: Complie problem - Sweez - 24.03.2013

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Higher you should have something like
pawn Код:
new Somename[123][someOtherName] = {
(names may vary)
change it to
pawn Код:
new Somename[][someOtherName] = {
I already have this
pawn Код:
new Buyable_Cars[MAX_BUY_CARS][CarInfo] = {



Re: Complie problem - Misiur - 24.03.2013

Well, that's what I'm talking about. MAX_BUY_CARS is in fact a number - so either do
pawn Код:
new Buyable_Cars[][CarInfo] = {
or change MAX_BUY_CARS to smaller number
or add more vehicles so there are exactly MAX_BUY_CARS