Initialization data exceeds declared size
#8

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
pawn Код:
new gHouseInteriors[][] = {
Compiled fine for me.
pawn Код:
new Float:gHouseInteriorPos[][] = {
F:\SERVER~1\SA-MP\SAMP03~3\GAMEMO~1\gm.pwn(116) : error 029: invalid expression, assumed zero
F:\SERVER~1\SA-MP\SAMP03~3\GAMEMO~1\gm.pwn(116) : error 008: must be a constant expression; assumed zero


Quote:
Originally Posted by CaHbKo
Try replacing 'new' with 'const'.
pawn Код:
const gHouseInteriorInfo[42][4] = {
F:\SERVER~1\SA-MP\SAMP03~3\GAMEMO~1\gm.pwn(11 : error 001: expected token: "=", but found "["
F:\SERVER~1\SA-MP\SAMP03~3\GAMEMO~1\gm.pwn(160) : error 010: invalid function or declaration


? if I'm not using them, it's compiling very well...

This is where I'm using them...
http://pastebin.com/BwGwddzE
Reply


Messages In This Thread
Initialization data exceeds declared size - by chosen - 13.06.2011, 09:26
Re: Initialization data exceeds declared size - by CaHbKo - 13.06.2011, 09:32
Re: Initialization data exceeds declared size - by Skaizo - 13.06.2011, 09:33
Re: Initialization data exceeds declared size - by chosen - 13.06.2011, 09:55
Re: Initialization data exceeds declared size - by Jeffry - 13.06.2011, 10:01
Re: Initialization data exceeds declared size - by CaHbKo - 13.06.2011, 10:06
Re: Initialization data exceeds declared size - by Skaizo - 13.06.2011, 10:08
Re: Initialization data exceeds declared size - by chosen - 13.06.2011, 10:22
Re: Initialization data exceeds declared size - by CaHbKo - 13.06.2011, 10:32
Re: Initialization data exceeds declared size - by chosen - 13.06.2011, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)