Dialog + Rcon = ?
#5

My code:

// public OnPlayerSpawn(playerid)
Код:
new loginmsg[128+1];
new loginname[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(loginmsg,128," [BETA 0.3].\n\nAccont: %s\n\nPassword:",loginname);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login",loginmsg,"Login","Cancel");
//public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
Код:
if(dialogid == 1) {
if(response) {
new string[128];
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string);}
return 1;}
Don't work still
Any idea ?
Reply


Messages In This Thread
Dialog + Rcon = ? - by Maniek - 15.09.2009, 13:24
Re: Dialog + Rcon = ? - by Betamaster - 15.09.2009, 13:31
Re: Dialog + Rcon = ? - by Stepashka - 15.09.2009, 13:32
Re: Dialog + Rcon = ? - by Stepashka - 15.09.2009, 13:34
Re: Dialog + Rcon = ? - by Maniek - 15.09.2009, 13:46
Re: Dialog + Rcon = ? - by Correlli - 15.09.2009, 13:50
Re: Dialog + Rcon = ? - by d0 - 15.09.2009, 13:52
Re: Dialog + Rcon = ? - by Stepashka - 15.09.2009, 14:05
Re: Dialog + Rcon = ? - by Correlli - 15.09.2009, 14:06
Re: Dialog + Rcon = ? - by dugi - 15.09.2009, 14:12

Forum Jump:


Users browsing this thread: 2 Guest(s)