18.07.2014, 21:22
sizeof won't work with arrays from enums and format is slow for copying strings. Use strcat instead:
and
pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
pawn Код:
// Usage: strcpy(destination, source, lenght)
strcpy(PlayerInfo[id][AdminName], name, MAX_PLAYER_NAME);
// change the size to higher if it's needed.