15.05.2016, 11:53
(
Последний раз редактировалось ratxrat; 15.05.2016 в 12:43.
Причина: solved
)
how to take variable from input text , example a=input_text , a as string. can someone giveme example?
#if !defined strcpy
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
// strpy(destination[], source[], size);
new tmp_inputtext[128]; // inputtext's max length can be 128
strcpy(tmp_inputtext, inputtext, sizeof tmp_inputtext);
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_INPUT, "text", "Please enter your text:", "oke", "Cancel");
format(string, sizeof(string), "text:%s ", input_box));
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
new string[134]; // max input (128) + "text:" (5) + NULL
format(string, sizeof(string), "text:%s ", inputtext));