Must be a constant expression; assumed zero
#4

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Well your array got two dimensions so you need to define it like that
pawn Код:
new APlanes[][] =
{ // start 1. dim
    // 0 - APlanes[0][x]
    { // start 2. dim
        // 0 - APlanes[0][0]
        "Andromada",
        // 10 - APlanes[0][10] - because "Andromada" is 10 cells long
        592
    }, // end 2. dim
    // 1 - APlanes[1][x]
    { // start 2. dim
        // 0 - APlanes[1][0]
        "AT400",
        // 6 - APlanes[1][6]
        577
    }, // end 2. dim
}; // end 1 dim
But now you should get an error if you try to use it in ShowPlayerDialog

You need to format a string with your array or you use another global array with only one dimension
Sorry my scripting skils are not that good, I din't understand a word of what I have to do :/
Reply


Messages In This Thread
Must be a constant expression; assumed zero - by Jhony_Blaze - 13.12.2014, 15:29
Re: Must be a constant expression; assumed zero - by Jhony_Blaze - 13.12.2014, 17:19
AW: Must be a constant expression; assumed zero - by Nero_3D - 13.12.2014, 18:33
Re: AW: Must be a constant expression; assumed zero - by Jhony_Blaze - 13.12.2014, 18:41
Re: Must be a constant expression; assumed zero - by Mic_H - 13.12.2014, 21:07

Forum Jump:


Users browsing this thread: 2 Guest(s)