Odg: [pomoc]register

Započeo Aldin Begovic, Februar 11, 2012, 17:13:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

mod:gf
opis problema:Radio sam intro ! I sada kada ukucam lozinku ne zeli mi izbacit da unesem sledece podatke tj Jeste li Musko Ili zensko, koliko imate godina itd ,znaci samo ukucam lozinku i sve onako stoji :SMolim pomoc
cod:public Intro2(playerid)
{

TextDrawHideForPlayer(playerid, ucitavanje);
TextDrawHideForPlayer(playerid, promo);
TextDrawHideForPlayer(playerid, zahvale);

    TextDrawHideForPlayer(playerid, tteam);
    TextDrawHideForPlayer(playerid, tim)
   
   
    {

        gPlayerAccount[playerid] = 0;
new regstring[512];
    new regname[64];
    GetPlayerName(playerid,regname,sizeof(regname));
      format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosli na pocetak registracije \n{33BBFF}%s\n{FFFFFF}Vas racun nije registriran, molimo upisite zeljenu lozinku:",regname);
    ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"{33BBFF}Registracija",regstring,"Registriraj","Odustani");
        SetPlayerCameraPos(playerid, 1469.0105,-1373.9404,62.4375);
          SetPlayerCameraLookAt(playerid, -1373.9404,62.4375,59.4403);
TogglePlayerSpectating(playerid, 1);
return false;
}


Pa problem je u tome kada mi izbaci da nemam acc da unesem lozinku ja unesem lozinku i nestane mi taj dialog nako stoji prazna slika nema nista a treba da izbaci dali sam musko ili zensko itd evo taj dialog
   //PRIJAVLJIVANJE
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
    if(strlen(inputtext))
    {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{

new loginstring[512];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{00C0FF}______________________________________________\n\n{FF0000}UPOZORENJE:Pogresan pass!\n\n{00FF00}INFORMACIJA:Ukoliko tri puta pogrijesite svoj password, Vas account ce biti zakljucan\n\n{FF0000}Molimo pazljivo upisite svoju lozinku...\n{00C0FF}______________________________________________",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{00C0FF}Street4life - Logiranje",loginstring,"Prijava","Izadji");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
    if(strlen(inputtext))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "To ime se vec koristi, molimo vas uzmite drugo.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}