Jump to content
  • 0

Unde Trebuie Puse Liniile Acestea?


Question

Posted (edited)

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

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

9 answers to this question

Recommended Posts

Posted

Cauta in gamemode-ul tau OnGameModeExit si dai de un public,punel dupa

public OnGameModeExit;(...)

{

 

 

Posted (edited)

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;
}
 

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted (edited)

Pune stock-ul la sfarsitul modului si vezi daca tot iti da acest 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;
  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;
}
Edited by Adrian_Petre

 

 

Posted (edited)

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.

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted (edited)

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;
}
Edited by Adrian_Petre

 

 

Posted (edited)

 

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;

}

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted

Incearca:

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;
}

 

 

Posted

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.
 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Guest
This topic is now closed to further replies.
×
×
  • 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.