[HELP] SendRconCommand, in Dialog...
#1

I have tried in 30 minutes now... Searched.. ect.. tried bt my self...

pawn Код:
SendRconCommand("mapname inputtext"); //inputtext = The text i type in the dialog...
Reply
#2

I'm not really experienced with using Rcon commands in dialog but I think that you need to first format this "inputtext" because it's not formated. Try to use something like this:
pawn Код:
SendRconCommand("mapname strval(inputtext)");
I'm not sure if this is gonna work but try to play with this.
Reply
#3

Quote:
Originally Posted by Alex_Valde
Посмотреть сообщение
I'm not really experienced with using Rcon commands in dialog but I think that you need to first format this "inputtext" because it's not formated. Try to use something like this:
pawn Код:
SendRconCommand("mapname strval(inputtext)");
I'm not sure if this is gonna work but try to play with this.
Not working =/
Reply
#4

Yeah that was completely wrong. :P Sorry about that.
Anyways, I was trying to get this work and I made something like this:

pawn Код:
{
        new string[24];
        format(string, sizeof(string), "mapname %s",inputtext);
        SendRconCommand(string);
        SendClientMessage(playerid, 0xFFFFFFFF, string);// Just to see if it works.
    }
Should work perfectly!
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)