Arrays and Enum's...
#1

Hi SAMP Forum,
Yet again, im having problems with enums and arrays... i cant explain whats going on to be honest, but heres my errors:
pawn Код:
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\newwork.pwn(78) : error 018: initialization data exceeds declared size
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\newwork.pwn(79) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
and heres my array and enum... The lines that have errors i have shown with a comment.

pawn Код:
enum BusMissionSystem {Float:lx, Float:ly, Float:lz, lname[64], ulname[64], Float:ux, Float:uy, Float:uz, type[64], price}
new BusMissionArray[1][BusMissionSystem] = { //line 78
{1672.2046, -2250.2512, 13.5150, "Los Santos International Airport Loading (1)", "Back 'o' Beyond Woods", -663.2438, -2537.2830, 51.8367}, "Tourists", 2500} //line 79
};
Could somebody take a look?

Thanks
Ash
Reply
#2

Hai! Try this:

pawn Код:
enum BusMissionSystem {Float:lx, Float:ly, Float:lz, lname[64], ulname[64], Float:ux, Float:uy, Float:uz, type[64], price};
new BusMissionArray[1][BusMissionSystem] = { //line 78
{1672.2046, -2250.2512, 13.5150, "Los Santos International Airport Loading (1)", "Back 'o' Beyond Woods", -663.2438, -2537.2830, 51.8367, "Tourists", 2500} //line 79
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)