Detecting spaces in dialogs (inputtext)
#1

Currently I have...

pawn Код:
case DIALOG_GOTOPOS:
        {
            if ( response )
            {
                if( IsFloat ( inputtext ) )
                {

                }
                else
                {
                    if( strcmp ( inputtext, "immigration", false ) == 0 )
                    {
                        SetPlayerPos ( playerid, 1489.1519, -1145.5687, 24.0781 );
                        SetPlayerFacingAngle ( playerid, 91.3527 );
                    }
                }
            }
        }
My problem is trying to determine if there's a space in between inputtexts.. Which is really hard to explain; I mean like..

In the dialog, I would input "0.0 10.0 20.0" if i wanted to go to 0.0, 10.0, 20.0. How would I go about splitting it up from the inputtext? God that's hard to explain..
Reply


Messages In This Thread
Detecting spaces in dialogs (inputtext) - by 2KY - 16.02.2013, 01:48
Re: Detecting spaces in dialogs (inputtext) - by Luis- - 16.02.2013, 01:52
Re: Detecting spaces in dialogs (inputtext) - by 2KY - 16.02.2013, 01:54
Re: Detecting spaces in dialogs (inputtext) - by Luis- - 16.02.2013, 02:03
Re: Detecting spaces in dialogs (inputtext) - by SchurmanCQC - 16.02.2013, 02:07
Re: Detecting spaces in dialogs (inputtext) - by 2KY - 16.02.2013, 02:09
Re: Detecting spaces in dialogs (inputtext) - by RajatPawar - 16.02.2013, 02:13
Re: Detecting spaces in dialogs (inputtext) - by 2KY - 16.02.2013, 02:14

Forum Jump:


Users browsing this thread: 3 Guest(s)