Help please
#4

Stinged told you that you can't use sizeof with inputtext or an array without a size in general. Make another string and copy the text stored:
pawn Код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
pawn Код:
static input_text[129];
strcpy(input_text, inputtext);
and then you can use strcat and join any text you want to "input_text" string. I'm not really sure if you meant to add 3 dots or it was just an example but if the text you are trying to "join" is constant, then you don't need to declare a string just for that.
pawn Код:
strcat(input_text, "...");
After done all that, use "input_text" in PlayerTextDrawSetString function.
Reply


Messages In This Thread
Help please - by MempishDevelerux - 22.08.2016, 17:37
Re: Help please - by Stinged - 22.08.2016, 17:42
Re: Help please - by MempishDevelerux - 22.08.2016, 19:13
Re: Help please - by Konstantinos - 22.08.2016, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)