Is this the correct way to make a string sized array == to inputtext?
#1

So I was wondering if I'm doing it correctly with this syntax, I am really not sure.
I have tried to do other methods just to check it and work around it, they worked in pawno but not sure if they'd work in-game.

So this is the method I've tried doing it yet I am unsure if this'll work correctly.

pawn Код:
new g_DialogName[100];

if(dialogid == DIALOG_SET_NAME)
    {
        if(response)
        {
            if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_SET_NAME, DIALOG_STYLE_INPUT, "Enter A Name", "Please enter a desired name for your dialog.\nBy this unique name you can find it stored inside the scriptfiles folder.\nUnder the assigned name you'll give it.\n\n", "INSERT", "EXIT");
            else
            {
                                g_DialogName[99] = inputtext[99];
                ShowPlayerDialog(playerid, DIALOG_SET_TEXT, DIALOG_STYLE_INPUT, "Please enter desired text", "Please enter desired text that the dialog will display.\n\n", "Create", "Exit");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Is this the correct way to make a string sized array == to inputtext? - by Ox1gEN - 24.09.2014, 20:47
Re: Is this the correct way to make a string sized array == to inputtext? - by ranme15 - 24.09.2014, 20:51
Re: Is this the correct way to make a string sized array == to inputtext? - by Ox1gEN - 24.09.2014, 21:13

Forum Jump:


Users browsing this thread: 1 Guest(s)