26.10.2017, 10:57
Use this:
PHP код:
if(dialogid == DIALOG_SERVER_HOSTNAME)
{
if(!response) return 1;
if(response)
{
new hostname;
new string[128];
if(strlen(inputtext) < 2 || strlen(inputtext) > 30) return SPD(playerid, DIALOG_SERVER_HOSTNAME, DSI, "HOSTNAME", "Hostname ne sme biti imate < 3 || > 30 karaktera!", "Uredu", "Exit");
format(string,128,"hostname %s",inputtext);
SendRconCommand(string);
return 1;
}
}