inputtext to a variable problem
#5

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.

Код:
Player[playerid][cClanNameForCreate][0] = '\0'; // Resetting
strcat(Player[playerid][cClanNameForCreate], inputtext, SIZE HERE);
Or you can use this macro:
Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
Reply


Messages In This Thread
inputtext to a variable problem - by MRM - 17.07.2016, 19:27
Re: inputtext to a variable problem - by K0P - 17.07.2016, 19:38
Re: inputtext to a variable problem - by MRM - 17.07.2016, 19:46
Re: inputtext to a variable problem - by sampkinq - 17.07.2016, 20:52
Re: inputtext to a variable problem - by Stinged - 17.07.2016, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)