[Pomoc]Brisanje naloga

Započeo Milos_Novakovic, Februar 27, 2013, 12:45:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:GTA-RP
Detaljan opis problema:Registrujem se sa imenom "Aleksandar_Velimirovic" kada izadjem iz igre i opet udjem kao da se nisam registrovao, znaci izbrise mi nalog, kako to da sredim ?? Hvala unapred
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

GTA RP ima limit, znaci ako ime i prezime ima vise od 12 slova, ne cuva acc :)
RESPECT :
Vegas & C++


public OnPlayerRequestClass(playerid, classid)
{
   PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
   PlayerInfo[playerid][pModel] = Peds[classid][0];

   if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
   {
      ClearChatbox(playerid, 10);
      SendClientMessage(playerid, COLOR_GREEN, " ~ Dobrodosli na Nas Server! ~");
      SendClientMessage(playerid, COLOR_RED, " Koristite najvise 12 slova u vasem imenu ili se nece sacuvati! ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      SendClientMessage(playerid, COLOR_YELLOW2, " ");
      if (gPlayerAccount[playerid] != 0)
      {
         new loginstring[128];
         new loginname[64];
         GetPlayerName(playerid,loginname,sizeof(loginname));
         format(loginstring,sizeof(loginstring),"Dobrodosli, %s\nOvo ime je registrovano.\nSada se mozete ulogovati:",loginname);
         ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
         SetTimerEx("KickLogovanjeTimer", 15000, false, "i", playerid);
         KikovanjeTimer[playerid] = 1;
      }
      else
      {
         //gPlayerAccount[playerid] = 0;
         new regstring[128];
         new regname[64];
         GetPlayerName(playerid,regname,sizeof(regname));
         format(regstring,sizeof(regstring),"Dobrodosli, %s\nVi nemate account.\nMolimo registrujte se:",regname);
         ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Izlaz");
      }
      //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
      PlayerInfo[playerid][pModel] = Peds[classid][0];
      SetPlayerTeamFromClass(playerid,classid);

Verovatno ima negde taj limit, samo ne znam gde, evo registracije ostale

if(RegistrationStep[playerid] > 0)
   {
       if(RegistrationStep[playerid] == 1)
       {
           new idx;
          tmp = strtok(text, idx);
          if((strcmp("musko", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("musko")))
         {
             PlayerInfo[playerid][pSex] = 1;
             ClearChatbox(playerid, 8);
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Ok, vi ste Musko.");
             SendClientMessage(playerid, COLOR_WHITE, "2. Kada ste rodjeni ? (Koristite dd/mm/yyyy)");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
             new maleskin;
             maleskin = random(sizeof(CivMalePeds));
             SetPlayerSkin(playerid, maleskin);
             PlayerInfo[playerid][pChar] = maleskin;
             RegistrationStep[playerid] = 2;
             return 0;
         }
         else if((strcmp("zensko", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("zensko")))
         {
             PlayerInfo[playerid][pSex] = 2;
             ClearChatbox(playerid, 8);
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Ok, vi ste zensko.");
             SendClientMessage(playerid, COLOR_WHITE, "2. Kada ste rodjeni ? (Koristite dd/mm/yyyy)");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
             new femaleskin;
             femaleskin = random(sizeof(CivFemalePeds));
             SetPlayerSkin(playerid, femaleskin);
             SetPlayerSkin(playerid, femaleskin);
             PlayerInfo[playerid][pChar] = femaleskin;
             RegistrationStep[playerid] = 2;
             return 0;
         }
         else
         {
             ClearChatbox(playerid, 8);
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_WHITE, "Da li ste musko ili zensko ? .");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
         }
         return 0;
      }
      else if(RegistrationStep[playerid] == 2)
       {
           new year, month,day;
         getdate(year, month, day);
           new DateInfo[3][20];
         split(text, DateInfo, '/');
         if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
         {
             ClearChatbox(playerid, 8);
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_WHITE, "Kada ste rodjeni ? (Koristite dd/mm/yyyy)");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
             return 0;
         }
         new check = year - strvalEx(DateInfo[2]);
         if(check == year)
         {
             ClearChatbox(playerid, 8);
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_WHITE, "Kada ste rodjeni ? (Koristite dd/mm/yyyy)");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
             return 0;
         }
         if(strvalEx(DateInfo[1]) > month)
         {
             check -= 1;
         }
         else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
         {
             check -= 1;
         }
         PlayerInfo[playerid][pAge] = check;
         ClearChatbox(playerid, 8);
         SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
         format(string, sizeof(string), "Ok, vi imate %d godina.",PlayerInfo[playerid][pAge]);
         SendClientMessage(playerid, COLOR_GREY, string);
         RegistrationStep[playerid] = 3;
         SendClientMessage(playerid, COLOR_WHITE, "3. Odakle ste? (Upisite: LS, SF, LV or LC)");
         SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
         ClearChatbox(playerid, 2);
         return 0;
       }
       else if(RegistrationStep[playerid] == 3)
       {
           new idx;
          tmp = strtok(text, idx);
          if((strcmp("LS", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LS")))
         {
             PlayerInfo[playerid][pOrigin] = 1;
                ClearChatbox(playerid, 8);
                SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Lepo, vi ste iz Los Santosa.");
             SendClientMessage(playerid, COLOR_WHITE, "Dobrodosli na Age Of Balkan, sada sledi tutorijal.");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
            RegistrationStep[playerid] = 0;
             TutTime[playerid] = 1;
             return 0;
         }
         else if((strcmp("SF", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("SF")))
         {
             PlayerInfo[playerid][pOrigin] = 2;
                ClearChatbox(playerid, 8);
                SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Lepo, vi ste iz San Fierra.");
             SendClientMessage(playerid, COLOR_WHITE, "Dobrodosli na Age Of Balkan, sada sledi tutorijal.");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
            RegistrationStep[playerid] = 0;
             TutTime[playerid] = 1;
             return 0;
         }
         else if((strcmp("LV", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LV")))
         {
             PlayerInfo[playerid][pOrigin] = 3;
                ClearChatbox(playerid, 8);
                SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Lepo, vi ste iz Las Venturasa.");
             SendClientMessage(playerid, COLOR_WHITE, "Dobrodosli na Age Of Balkan, sada sledi tutorijal.");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
               RegistrationStep[playerid] = 0;
             TutTime[playerid] = 1;
             return 0;
         }
         else if((strcmp("LC", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LC")))
         {
             PlayerInfo[playerid][pOrigin] = 4;
                ClearChatbox(playerid, 8);
                SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_GREY, "Lepo, vi ste iz Libery City.");
             SendClientMessage(playerid, COLOR_WHITE, "Dobrodosli na Age Of Balkan, sada sledi tutorijal.");
             SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             ClearChatbox(playerid, 2);
            RegistrationStep[playerid] = 0;
             TutTime[playerid] = 1;
             return 0;
         }
         else
         {
             ClearChatbox(playerid, 8)
               SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
             SendClientMessage(playerid, COLOR_WHITE, "Odakle ste? (Upisite: LS, SF, LV or LC)");
              SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
              ClearChatbox(playerid, 2);
         }
           return 0;
       }
   }