Jump to content

Mister

Moderator
  • Posts

    1,884
  • Joined

  • Last visited

  • Days Won

    113

Posts posted by Mister

  1. Problemă întâlnită (descriere): Salut cand scriu /admins nu arata admini online sau helperi online, si sunt si onduty si nu arata, nu doar la mine am mai intrat cu cineva pe server si a dat admin si nu a mers
    Ero(area / rile) / warning-(ul / urile): nu da
    Liniile de cod / sursa / script-ul:

       if (strcmp(cmd, "/admins", true) == 0) // By CuervO_NegrO
        {
            if(IsPlayerConnected(playerid))
            {
                SendClientMessage(playerid, COLOR_GREEN, "|____Online Administration Team ____|");
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] <= 1338 || PlayerInfo[pTester] >= 1)
                        {
                            new admtext[64];
                            if(PlayerInfo[pAppearList] == 1)
                            {
                                 if(PlayerInfo[pAdmin] == 1338) { admtext = "Server Owner"; }
                                else if(PlayerInfo[pAdmin] == 1337) { admtext = "Server Scripter"; }
                                else if(PlayerInfo[pAdmin] == 6)    { admtext = "Server Developer"; }
                                else if(PlayerInfo[pAdmin] == 5) { admtext = "Main Administrator"; }
                                else if(PlayerInfo[pAdmin] == 4) { admtext = "Senior Administrator"; }
                                else if(PlayerInfo[pAdmin] == 3) { admtext = "Administrator"; }
                                else if(PlayerInfo[pAdmin] == 2)    { admtext = "Global Moderator"; }
                                else if(PlayerInfo[pAdmin] == 1) { admtext = "Moderator"; }
                                else if(PlayerInfo[pTester] == 3) { admtext = "Lead Tester"; }
                                else if(PlayerInfo[pTester] == 2) { admtext = "Tester"; }
                                else if(PlayerInfo[pTester] == 1) { admtext = "Trial Tester"; }
                                else { admtext = "Unknown Rank"; }
                            }
                            GetPlayerName(i, sendername, sizeof(sendername));
                            if(PlayerInfo[pAdminDuty] == 0 && PlayerInfo[pAppearList] == 1)
                            {
                                format(string, sizeof(string), "%s - %s", admtext, sendername);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                            }
                            else if(PlayerInfo[pAdminDuty] == 1 && PlayerInfo[pAppearList] == 1)
                            {
                                format(string, sizeof(string), "%s - %s (On Duty)", admtext, sendername);
                                SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
                            }
                        }
                    }
                }
            }
            return 1;
        }

    Imagini / Video (optional):
    Aţi încercat să rezolvaţi singur?: da

     

  2. salut da erori

     

    strtok(const string[], &index)
    {
        new length = strlen(string);
        while ((index < length) && (string[index] <= ' ')) { index++; }
          new offset = index; new result[20];
          while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
          { result[index - offset] = string[index]; index++; }
          result[index - offset] = EOS; return result;
    24489     while ((idx < length) && (cmdtext[idx] <= ' '))
          {
            index++;
          }
           while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
          {
            result[index - offset] = string[index];
            index++;
          }
          result[index - offset] = EOS;
          return result;
    }

     

     

    erori

    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(24489) : warning 225: unreachable code
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(24489) : error 017: undefined symbol "idx"
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(24489) : error 029: invalid expression, assumed zero
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(24489) : error 029: invalid expression, assumed zero
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(24489) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


    4 Errors.
     

  3.  

    Ah,am gresit,scuza-ma credeam ca este stock:))

    PS:Incearca sa pui asta acolo unde era prima data:

    strtok(const string[], &index)
    {
      new length = strlen(string);
    :  while ((index < length) && (string[index] <= ' ')) { index++; }
      new offset = index; new result[20];
      while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
      { result[index - offset] = string[index]; index++; }
      result[index - offset] = EOS; return result;
      while ((idx < length) && (cmdtext[idx] <= ' '))
      {
        index++;
      }
      
      while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
      {
        result[index - offset] = string[index];
        index++;
      }
      result[index - offset] = EOS;
      return result;
    }

    salut nu linia acea este cea cu eroarea ci aceasta

     

    strtok(const string[], &index)

    {

      new length = strlen(string);

      while ((index < length) && (string[index] <= ' ')) { index++; }

      new offset = index; new result[20];

      while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

      { result[index - offset] = string[index]; index++; }

      result[index - offset] = EOS; return result;

     linia 24486 while ((index < length) && (string[index] <= ' '))

      {

        index++;

      }

      

      while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

      {

        result[index - offset] = string[index];

        index++;

      }

      result[index - offset] = EOS;

      return result;

    }

  4. salut,

    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : warning 225: unreachable code
    Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


    1 Warning.
     

     

    strtok(const string[], &index)
    {
        new length = strlen(string);
         while ((index < length) && (string[index] <= ' ')) { index++; }
        new offset = index; new result[20];
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        { result[index - offset] = string[index]; index++; }
        result[index - offset] = EOS; return result;

    linia 24486: while ((index < length) && (string[index] <= ' '))
        {
            index++;
        }

        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
            result[index - offset] = string[index];
            index++;
        }
        result[index - offset] = EOS;
        return result;
    }

     

    Scuze am pus linia gresita era la fel dar am facut la fel cu lini corecta si uite ce da

    Am facut asa dar nu a mers

     

    strtok(const string[], &index)
    {
        new length = strlen(string);
         while ((index < length) && (string[index] <= ' ')) { index++; }
        new offset = index; new result[20];
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        { result[index - offset] = string[index]; index++; }
        result[index - offset] = EOS; return result;
    :  while ((index < length) && (string[index] <= ' '))
        {
            index++;
        }

        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
            result[index - offset] = string[index];
            index++;
        }
        result[index - offset] = EOS;
        return result;
    }

     

    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : warning 225: unreachable code
    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : warning 217: loose indentation
    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : error 029: invalid expression, assumed zero
    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : warning 215: expression has no effect
    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24486) : error 001: expected token: ";", but found "while"
    C:UsersADesktopserverreraven roleplay vw - Copy - Copygamemodeslarp.pwn(24491) : warning 217: loose indentation
    Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


    2 Errors.

  5. salut, mersi a mers dar acuma da asta eroare

    C:UsersADesktopserverreroleplay vw - Copy - Copygamemodeslarp.pwn(24486) : warning 225: unreachable code
    Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


    1 Warning.
     

     

     

    liniile

     

    strtok(const string[], &index)
    {
        new length = strlen(string);
    linia 24486:    while ((index < length) && (string[index] <= ' ')) { index++; }
        new offset = index; new result[20];
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        { result[index - offset] = string[index]; index++; }
        result[index - offset] = EOS; return result;
        while ((index < length) && (string[index] <= ' '))
        {
            index++;
        }
        
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
            result[index - offset] = string[index];
            index++;
        }
        result[index - offset] = EOS;
        return result;
    }
     

  6. Problemă întâlnită (descriere): nu stiu unde trebuie sa pun aceste linii...
    Ero(area / rile) / warning-(ul / urile):

    C:UsersADesktopserverreroleplay vw - Copy - Copygamemodeslarp.pwn(6491) : error 017: undefined symbol "LBox"
    C:UsersADesktopserverreroleplay vw - Copy - Copygamemodeslarp.pwn(6491) : warning 215: expression has no effect
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(6491) : error 001: expected token: ";", but found "]"
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(6491) : error 029: invalid expression, assumed zero
    C:UsersADesktopserverre roleplay vw - Copy - Copygamemodeslarp.pwn(6491) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


    4 Errors.
     


    Liniile de cod / sursa / script-ul:

    for(new i=0; i<PLAYERS; i++)
        {
        TextDrawHideForPlayer(i, LBox);
        TextDrawHideForPlayer(i, LLine1);
        TextDrawHideForPlayer(i, LLine2);
        TextDrawHideForPlayer(i, LLine3);
        TextDrawHideForPlayer(i, LLine4);
        TextDrawHideForPlayer(i, LCredits);
        TextDrawHideForPlayer(i, Lmph);
        TextDrawHideForPlayer(i, LFunc);
        }

     

    nu stiu unde trebuie sa pun astea e un filterscript si sunt la onfilterscriptexit, eu vreau sa il pun intr-un gm

    Imagini / Video (optional):
    Aţi încercat să rezolvaţi singur?: da

  7. Pai si atunci dece oricare alt spedometer are complet alta viteza...

    Oricum ma poti ajuta sau imi poti arata de unde sa ii pun distanta totala pe care o face sa arata acolo in dreapta undeva cati kilometri a facut masina, am luat ceva asemanator dar  cand dau rr la server se da si la el.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.