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

sizeof won't work with arrays from enums and format is slow for copying strings. Use strcat instead:

pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
and
pawn Код:
// Usage: strcpy(destination, source, lenght)
strcpy(PlayerInfo[id][AdminName], name, MAX_PLAYER_NAME);
// change the size to higher if it's needed.
Reply


Messages In This Thread
error 047: array sizes do not match, or destination array is too small - by Xenforox - 18.07.2014, 20:36
Re: error 047: array sizes do not match, or destination array is too small - by Konstantinos - 18.07.2014, 21:22
Re : error 047: array sizes do not match, or destination array is too small - by Xenforox - 18.07.2014, 22:39
Re : error 047: array sizes do not match, or destination array is too small - by S4t3K - 18.07.2014, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)