[Ajuda] Com dialog
#1

Tenho um dialog de registrar,porem quando a pessoa clicka em sair,simplesmente nгo acontece nada.... olha ele ae:

pawn Код:
if(dialogid == ReGiStEr)
{
new file[128];
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(response)
{
if(strlen(inputtext) == 0)
{
format(string, sizeof string, "Bem vindo(a) ao server.\n\nUsuбrio: %s \n\nInforme sua senha para Registrar:", name);
ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, "Conta", string, "Registrar", "Sair");
return 0;
}
format(file,sizeof(file),"RoxBrasil/contas/%s.ini",name);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file,"Senha", udb_hash(inputtext));
dini_IntSet(file, "AdminLevel", 0);
dini_IntSet(file,"Score", GetPlayerScore(playerid));
dini_IntSet(file,"Money", GetPlayerMoney(playerid));
dini_IntSet(file,"Deaths", PlayerInfo[playerid][Deaths]);
dini_IntSet(file,"Kills", PlayerInfo[playerid][Kills]);
dini_IntSet(file,"ServerTime", PlayerInfo[playerid][ServerTime]);
dini_IntSet(file,"WantedLevel", GetPlayerWantedLevel(playerid));
dini_IntSet(file,"PlayerSkin",GetPlayerSkin(playerid));
dini_IntSet(file,"Balance",pBankInfo[playerid][PLAYER_BALANCE]);
dini_IntSet(file, "PositionX", floatround(positionx));
dini_IntSet(file, "PositionY", floatround(positiony));
dini_IntSet(file, "PositionZ", floatround(positionz));
SetTimerEx("ZerowanieKasy2", 20000, 0, "d", playerid);
format(string, sizeof string, "Bem vindo(a) ao server\n\nUsuбrio: %s \n\nInforme sua senha para logar:", name);
ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, "Conta", string, "Logar", "Sair");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
GetPlayerName(playerid, name, sizeof(name));
printf("%s Registrou sua conta!", name);
SendClientMessage(playerid, BRANCO, "[CONTA]: Conta Registrada com sucesso.");
}
else
{
Kick(playerid); // aki
}
}
}
O que estб errado? era pra kickar quando clickasse em sair...

alguem?
Reply


Messages In This Thread
[Ajuda] Com dialog - by [GET]Vidaloka - 27.08.2010, 00:58
Re: [Ajuda] Com dialog - by TiagoPS - 27.08.2010, 12:54
Re: [Ajuda] Com dialog - by [GET]Vidaloka - 27.08.2010, 16:06
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 00:37
Re: [Ajuda] Com dialog - by SuB_ZeRo0_ - 28.08.2010, 00:47
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 01:25
Re: Respuesta: [Ajuda] Com dialog - by SuB_ZeRo0_ - 28.08.2010, 01:26
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 01:28
Re: [Ajuda] Com dialog - by [GET]Vidaloka - 28.08.2010, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)