[Ajuda] Array
#1

Nгo tem como colocar o tamanho do array com uma variбvel?

pawn Код:
stock existsLine(nameF[], pattern[], lineLength = 1)
{
    if(fexist(nameF)){
        new File:file = fopen(nameF,io_read);
        new line[lineLength];//Erro aqui
        }
}
Erro:
error 008: must be a constant expression; assumed zero
error 009: invalid array size (negative, zero or out of bounds)
error 036: empty statement
Reply


Messages In This Thread
Array - by BrunoPasqualini - 03.08.2014, 00:36
Re: Array - by WLSF - 03.08.2014, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)