SendRconCommand...
#1

Hi all...i created a FS for me with SendRconCommand's InGame with dialogs...
and i have a problem he don't set that HostName what i write in Dialog Input...

Here is the Dialog response
pawn Код:
if ( dialogid == D4 )
    {
        if ( response == 1 )
        {
            if ( strlen( inputtext ) )
            {
                if ( strlen( inputtext ) > 0 && strlen( inputtext ) < 12 )
                {
                    if ( IsPlayerConnected( playerid ) )
                    {
                        new str[ 40 ];
                        format( str, 40,"mapname %s", strlen( inputtext ) );
                        SendRconCommand( str );
                    }
                }
            }
        }
    }
what is the problem?
Reply
#2

strlen for %s?(strlen return the number of characters from a string ,no the string xD )
pawn Код:
if ( dialogid == D4 )
{
    if ( response == 1 )
    {
        if ( 0< strlen( inputtext ) <12 )
        {
            new str[ 40 ];
            format( str, 40,"mapname %s", inputtext );
            SendRconCommand( str );
        }
    }
}
Reply
#3

ok...but he don't set me the mapname...??why?
i put here the script...?
Reply
#4

BUMP anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)