help with DIALOG_STYLE_INPUT
#2

Do you mean to copy the text from inputtext to a new variable (string)?

pawn Код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
and then:
pawn Код:
// strpy(destination[], source[], size);
new tmp_inputtext[128]; // inputtext's max length can be 128
strcpy(tmp_inputtext, inputtext, sizeof tmp_inputtext);
Reply


Messages In This Thread
[SOLVED]help with DIALOG_STYLE_INPUT - by ratxrat - 15.05.2016, 11:53
Re: help with DIALOG_STYLE_INPUT - by Konstantinos - 15.05.2016, 11:57
Re: help with DIALOG_STYLE_INPUT - by ratxrat - 15.05.2016, 12:10
Re: help with DIALOG_STYLE_INPUT - by Konstantinos - 15.05.2016, 12:20
Re: help with DIALOG_STYLE_INPUT - by ratxrat - 15.05.2016, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)