help

Započeo | MARKO |
27. Jun 2010.
1,015
pregleda
6
postova
filip_pnv
4
Made Man
27. Jun 2010.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  new sendername;
  new string;
  if(response)
  {
      if(dialogid == 12346 || dialogid == 12347)
      {
      if(strlen(inputtext))
          {
            new tmppass;
            strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
            //Encrypt(tmppass);
            OnPlayerLogin(playerid,tmppass);
        }
        else
        {
            new loginstring;
            new loginname;
            GetPlayerName(playerid,loginname,sizeof(loginname));
            format(loginstring,sizeof(loginstring),"POGRESNA LOZINKA\nMolimo unesite tocnu lozinku:",loginname);
            ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Prijava",loginstring,"Prijava","Izlaz");
            gPlayerLogTries += 1;
            if(gPlayerLogTries == 5) { Ban(playerid); }
        }
      }
      if(dialogid == 12345)
      {
      if(strlen(inputtext))
          {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "users/%s.ini", sendername);
            new File: hFile = fopen(string, io_read);
            if (hFile)
            {
              SendClientMessage(playerid, COLOR_YELLOW, "To korisnicko ime je vec zauzeto, molimo odaberite neko drugo.");
              fclose(hFile);
              return 1;
            }
            new tmppass;
            strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
            //Encrypt(tmppass);
            OnPlayerRegister(playerid,tmppass);
        }
        else
        {
            new regstring;
            new regname;
            GetPlayerName(playerid,regname,sizeof(regname));
            format(regstring,sizeof(regstring),"Dobrodosli, %s\nNemate account.\nMolimo registrirajte se:",regname);
            ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Registracija",regstring,"Registracija","Izlaz");
        }
      }
  }
  else
  {
      Kick(playerid);
  }
  return 1;
}

gdje se tu nalazi taj callback??

za ovo

if ( strlen ( inputtext ) < 8 ) return ShowPlayerDialog( ... );
iYoko
4
Shot Caller
27. Jun 2010.
Ovo treba bisat ili lockat... U trecu temu vec postas isti problem.

Malo pricekaj i odgovorit ce ti tamo, neces ovako nista ubrzat...
aleluja
5
Godfather
27. Jun 2010.
i nezna stavljat u kodove :SSS
filip_pnv
4
Made Man
27. Jun 2010.
aleluja, ak ces pomoc pomozi, ak nes nemoj.
aleluja
5
Godfather
27. Jun 2010.
filip_pnv wrote on June 27, 2010, 5:43 pm:
aleluja, ak ces pomoc pomozi, ak nes nemoj.

sada si mi posla PM da ti to iskriptam
filip_pnv
4
Made Man
27. Jun 2010.
pa kazem ti pomozi ak os, ak nes nemoras

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha