[REÅ ENO] Reakcija previse ubrzava niti radi kako treba

Započeo kim3205, Septembar 19, 2016, 05:51:17 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:xBEr v3.1.0
Detaljan opis problema:Evo pogledaj te sliku problem je u timeru/vremenu nzm kako da namestim Je*avao sam se oko ovoga 2/3h i nigde veze nigde promene nije mi jasno zasto nece da slusa skripta...Startujem reakciju i pokaze mi slova/broj ja ukucam ali nista se ne desava,ali ne znam zasto evo vam slika/skirpta.
Dio skripte:
[pawn]new
   xCharacters[][] =
   {
       "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M",
      "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
       "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "m",
      "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
      "1", "2", "3", "4", "5", "6", "7", "8", "9", "I", "l"
   },
   xChars[16] = "",
   xReactionTimer,
   xReactionTimer1,
   bool: xTestBusy
;[/pawn]
[pawn]#define MAX_REACTION 1
enum Reactions
{
   rcTime,
   rcName[64]
};
new RC[MAX_REACTION][Reactions];[/pawn]
[pawn]   switch(xTestBusy)
   {
       case true:
       {
         if(!strcmp(xChars, text, false))
         {
             if(PI[playerid][pabs] < 1)
             {
                new pName[MPN];
               GetPlayerName(playerid, pName, sizeof(pName));
               strreplace(pName, '_', ' ');
               PI[playerid][pReaction]++;
               new mon = random(250)+750;
               lz_GivePlayerMoney(playerid, mon);
               format(string, sizeof(string), "REACTION: {FFFFFF}%s je prvi upisao '%s'. Ukupno ima %d RC poena, dobio je $%d. [%d ms]", pName,xChars,PI[playerid][pReaction],mon,GetTickCount()-reakcija);
                SCMTA(SVETLOCRVENA, string);
                if(GetTickCount()-reakcija < 3000)
                {
                  format(string, sizeof(string), "REACTION: {FFFFFF}%s je upisao reakciju za [%d ms] (ispod 3000 ms) i osvojio gratis RC poen!", GetName(playerid), GetTickCount()-reakcija);
                   SCMTA(SVETLOCRVENA, string);
                   PI[playerid][pReaction]++;
               }
                if(GetTickCount()-reakcija < RC[0][rcTime])
                {
                  format(string, sizeof(string), "REACTION: {FFFFFF}%s je oborio prosli rekord od [%d ms] na [%d ms] i samim tim zaradio $25000!", GetName(playerid), RC[0][rcTime], GetTickCount()-reakcija);
                   SCMTA(SVETLOCRVENA, string);
                   RC[0][rcTime] = GetTickCount()-reakcija;
                  strmid(RC[0][rcName], GetName(playerid), 0, strlen(GetName(playerid)), 255);
                  SacuvajReaction(0);
                  lz_GivePlayerMoney(playerid, 25000);
               }
                format(string, sizeof(string), "REACTION: {FFFFFF}Trenutni rekord je [%d ms], koji je napravio %s!", RC[0][rcTime], RC[0][rcName]);
                SCMTA(SVETLOCRVENA, string);
                reakcija = 0;
                xTestBusy = false;
                xReactionTimer = SetTimer("xReactionTest", 658321, 0);
                KillTimer(xReactionTimer1);
                if(PI[playerid][pReaction] == 250 || PI[playerid][pReaction] == 500 || PI[playerid][pReaction] == 750 || PI[playerid][pReaction] == 1000 || PI[playerid][pReaction] == 1250 || PI[playerid][pReaction] == 1500 || PI[playerid][pReaction] == 1750 || PI[playerid][pReaction] == 2000 ||
               PI[playerid][pReaction] == 2250 || PI[playerid][pReaction] == 2500 || PI[playerid][pReaction] == 2750 || PI[playerid][pReaction] == 3000 || PI[playerid][pReaction] == 3250 || PI[playerid][pReaction] == 3500 || PI[playerid][pReaction] == 3750 || PI[playerid][pReaction] == 4000 || PI[playerid][pReaction] == 4250 || PI[playerid][pReaction] == 4500 ||
               PI[playerid][pReaction] == 4750 || PI[playerid][pReaction] == 5000)
                {
                    PI[playerid][pBE]++;
                    SCMF(playerid, -1, ""COL_RED"[BM] {FFFFFF}(( Sakupili ste %d RC Poena i dobili ste nagradni 1 BEPoint! ))",PI[playerid][pReaction]);
                }
                if(PI[playerid][pReaction] == 5000)
                {
                    PI[playerid][pReaction] = 0;
                    SCM(playerid, -1, ""COL_RED"[BM] {FFFFFF}(( Posto ste sakupili 5000 RC Poena, restartovani su vam RC Poeni! ))");
                }
                SaveAccount(playerid);
                return false;
            }
         }
      }
   }[/pawn]
[pawn]YCMD:startreaction(playerid,params[],help)
{
   #pragma unused help
   if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a!");
    if(PI[playerid][pabs] < 1 && ACCmd[playerid] == 1) return Error(playerid, ""COL_RED"[HIAC]: Uspori malo sa komandama! Maksimalno jedna u sekundi, Sacekaj jos 2s!");
   CmdProtect(playerid);
   #pragma unused params
   if(!strcmp(GetNameEx(playerid), Owner_1, true) || !strcmp(GetNameEx(playerid), Owner_2, true) || !strcmp(GetNameEx(playerid), Director_1, true) || !strcmp(GetNameEx(playerid), Director_2, true) || !strcmp(GetNameEx(playerid), Director_3, true) || !strcmp(GetNameEx(playerid), Director_4, true) || !strcmp(GetNameEx(playerid), Director_5, true) || !strcmp(GetNameEx(playerid), Director_6, true))
   {
      if(UlogovanIgrac[playerid] == 0) return Error(playerid, "Nisi ulogovan!");
      if(PI[playerid][pabs] < 6) return Error(playerid, "Ne mozes to.");
      SCMF(playerid, -1, ""COL_RED"[BM] {FFFFFF}Pokrenuli ste reakciju.");
      new str[128];
      format(str,128,""COL_RED"BM:AC {afafaf} %s je pokrenuo reakciju.", GetName(playerid));
      PAdm(ZUTA,str,1);
      xReactionTest();
   }
   return true;
}[/pawn]
[pawn]FUNCTION: xReactionProgress()
{
    switch(xTestBusy)
   {
       case true:
       {
          new string[128];
         format(string, sizeof(string), "REACTION: {FFFFFF}Niko nije na vreme upisao odredjenu rec, sacekajte sledecu reakciju!");
          SCMTA(SVETLOCRVENA, string);
          xReactionTimer = SetTimer("xReactionTest", 298321, 0);
          KillTimer(xReactionTimer1);
           xTestBusy = false;
           reakcija = 0;
        }
   }
   return true;
}

FUNCTION: xReactionTest()
{
    switch(xTestBusy)
   {
       case false:
       {
         new
            xLength = (random(1)+8),
            string[128];
         format(xChars, sizeof(xChars), "");
         Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
         format(string, sizeof(string), "REACTION: {FFFFFF}Ko prvi napise '%s' dobija odredjenu svotu novca i RC poen.", xChars);
         SCMTA(SVETLOCRVENA, string);
         KillTimer(xReactionTimer);
         xTestBusy = true;
         xReactionTimer1 = SetTimer("xReactionProgress", 20000, 0);
         reakcija = GetTickCount();
         return true;
      }
   }
   return true;
}
[/pawn]

Neke slike/video za lakse dobivanje pomoci(neobavezno):http://i.imgur.com/o3mSAZr.png
Poslednja Izmena: Septembar 25, 2016, 08:40:40 PRE PODNE od Aussie

i am king!

Koliko minuta prodje nakon sto drugi dodje  :D :D :D :D
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.


[pawn]FUNCTION: xReactionProgress()
{
    switch(xTestBusy)
   {
       case true:
       {
          new string[128];
         format(string, sizeof(string), "REACTION: {FFFFFF}Niko nije na vreme upisao odredjenu rec, sacekajte sledecu reakciju!");
          SCMTA(SVETLOCRVENA, string);
          xReactionTimer = SetTimer("xReactionTest", 298321, true);
          KillTimer(xReactionTimer1);
           xTestBusy = false;
           reakcija = 0;
        }
   }
   return true;
}

FUNCTION: xReactionTest()
{
    switch(xTestBusy)
   {
       case false:
       {
         new
            xLength = (random(1)+8),
            string[128];
         format(xChars, sizeof(xChars), "");
         Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
         format(string, sizeof(string), "REACTION: {FFFFFF}Ko prvi napise `%s` dobija odredjenu svotu novca i RC poen.", xChars);
         SCMTA(SVETLOCRVENA, string);
         KillTimer(xReactionTimer);
         xTestBusy = true;
         xReactionTimer1 = SetTimer("xReactionProgress", 20000, true);
         reakcija = GetTickCount();
         return true;
      }
   }
   return true;
}[/pawn]
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.


if(PI[playerid][pabs] < 1)

Skini sebi admina bratko, nije bug ;)
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci