HELP: array sizes do not match, or destination array is too small
#2

That's not how you copy a string to another.

pawn Код:
new epavadinimas[128]; // or smaller size - depending on what it's used for.
pawn Код:
if( dialogid == 998 )
{
    if(response)
    {
        erengejas = playerid;
        strcpy(epavadinimas, inputtext, sizeof (epavadinimas));
        vykstaeventas = true;
        new msg[100];
        format(msg,sizeof(msg), ""HEX_W"INFO:"HEX_Y" Jūs sėkmingai surengėte %s eventą. "HEX_R"Valdymas: /evaldymas", epavadinimas);
        SendClientMessage(playerid, -1, msg);
    }
    return 1;
}
The strcpy:
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
add it BEFORE.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)