17.07.2016, 21:02
That's not how you're supposed to copy strings.
Reset the string, and then use strcat.
If it's in an enum, you have to enter the size.
Or you can use this macro:
Reset the string, and then use strcat.
If it's in an enum, you have to enter the size.
Код:
Player[playerid][cClanNameForCreate][0] = '\0'; // Resetting strcat(Player[playerid][cClanNameForCreate], inputtext, SIZE HERE);
Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)