Saving names in MySQL
#2

Make sure that you have 'word' set as array in your enum (e.g. word[32]). Then use strcpy to copy the string into another string.

pawn Код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
    return strcat((dest[0] = EOS, dest), source, maxlength);
}
Reply


Messages In This Thread
Saving names in MySQL - by Kingunit - 11.09.2011, 13:20
Re: Saving names in MySQL - by Vince - 11.09.2011, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)