Inputtext Dialog help.
#1

Hello.

I'm trying to make a code where a player enters text, that will be showed on other player's screen for 6 seconds. But it's converting the inputtext to a integer, I know why it is making it a integer, but if I do
pawn Код:
new text = inputtext;
It doesn't compile.

Help is appreciated. thanks.

pawn Код:
if(dialogid == announce)
    {
        new string[25];
        new text = strval(inputtext);
        if(text > 25) return SendClientMessage(playerid,COLOR_RED, "Keep your text characters below 25.");
        format(string,sizeof(string), "~g~%s",text);
        GameTextForAll(string, 6000, 2);
        return 1;
    }
Reply


Messages In This Thread
Inputtext Dialog help. - by rangerxxll - 24.12.2013, 22:23
Re: Inputtext Dialog help. - by Jefff - 24.12.2013, 22:26
Re: Inputtext Dialog help. - by rangerxxll - 24.12.2013, 22:32

Forum Jump:


Users browsing this thread: 2 Guest(s)