SendRconCommand... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SendRconCommand... (
/showthread.php?tid=267143)
SendRconCommand... -
Edvin - 07.07.2011
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?
Re: SendRconCommand... -
Farsek - 07.07.2011
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 );
}
}
}
Re: SendRconCommand... -
Edvin - 07.07.2011
ok...but he don't set me the mapname...??why?
i put here the script...?
Re: SendRconCommand... -
Edvin - 07.07.2011
BUMP anyone?