26.10.2017, 10:30
(
Последний раз редактировалось maksicnm; 26.10.2017 в 18:19.
)
- Solved
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;
}
}
hostname = strlen(inputtext);
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;
}
}