Complie problem
#1

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 ?
Reply
#2

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

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] = {
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)