Dialog Style Input - How to use "inputtext"? (and error help)
#1

Brief: I'm getting an error, and I've tried everything to fix it. My question about it is how do you use "inputtext" correctly?

Код:
array sizes do not match, or destination array is too small
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_BIZNAME)
    {
        if(response)
        {
            new bizedit = IsEditingBiz[playerid];
            IsEditingBiz[playerid] = -1;
            bInfo[bizedit][bizname] = inputtext; <-- error line
            UpdateBizTD(bizedit);
            return 1;
        }
        return 1;
    }
    return 0;
}
Reply
#2

strcpy. Search it.
Reply
#3

myStrcpy(bInfo[bizedit][bizname], inputtext);
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
strcpy. Search it.
Quote:
Originally Posted by Yako
Посмотреть сообщение
myStrcpy(bInfo[bizedit][bizname], inputtext);
Thanks so much! Rep each.
Reply
#5

pawn Код:
#define strcpy(%1, %2) format(%1, sizeof(%1), "%s", %2)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)