error 047: array sizes do not match, or destination array is too small
#3

PlayerInfo[playerid][pForum] should have 32 lenght as well in order to work. It's possible to copy strings like that if the lenght are same to both of them. If I were you, then I would copy the string with:
pawn Код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
    strcat((dest[0] = EOS, dest), source, maxlength);
}
pawn Код:
strcpy(PlayerInfo[playerid][pForum], s_forumname);
PS: format is too slow, try using other methods such as strins for example!
Reply


Messages In This Thread
error 047: array sizes do not match, or destination array is too small - by Darnell - 30.07.2013, 09:02
Re: error 047: array sizes do not match, or destination array is too small - by antonio112 - 30.07.2013, 09:35
Re: error 047: array sizes do not match, or destination array is too small - by Konstantinos - 30.07.2013, 09:36
Re: error 047: array sizes do not match, or destination array is too small - by Darnell - 30.07.2013, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)