Error with enum
#2

You have to use strmid to turn a multidimensional array equal to another text variable (string).

Strmid will extract the content of a string to the string with multidimensional array, and everything without give errors related to the arrays .

Here, i did it for you

pawn Код:
enum nInfo
{
    nNome[32],
    nTelefone,
    nLocalizacao[128],
    nSituacao[128],
};
new NoveInfo[nInfo];


//This's to save:
stock NoveNome(string[])
{
    //NoveInfo[nNome] = string;
    strmid(NoveInfo[nNome],string,false,strlen(string),32);
    return 1;
}
stock NoveSituacao(string[])
{
    //NoveInfo[nSituacao] = string;
    strmid(NoveInfo[nSituacao],string,false,strlen(string),128);
    return 1;
}
stock NoveLocalizacao(string[])
{
    //NoveInfo[nLocalizacao] = string;
    strmid(NoveInfo[nLocalizacao],string,false,strlen(string),128);
    return 1;
}
I hope that i have helped
Reply


Messages In This Thread
Error with enum - by Ricop522 - 05.03.2011, 16:30
Re: Error with enum - by rjjj - 05.03.2011, 16:48
Re: Error with enum - by alpha500delta - 05.03.2011, 16:53
Re: Error with enum - by Ricop522 - 05.03.2011, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)