Jump to content
  • 0

erori in pawno


RenDy

Question

C:\Users\Daniel\Desktop\prohlds.ro\gamemodes\prohlds.pwn(26894) : warning 217: loose indentation

C:\Users\Daniel\Desktop\prohlds.ro\gamemodes\prohlds.pwn(26897) : warning 217: loose indentation

C:\Users\Daniel\Desktop\prohlds.ro\gamemodes\prohlds.pwn(26900) : warning 217: loose indentation

C:\Users\Daniel\Desktop\prohlds.ro\gamemodes\prohlds.pwn(26912) : warning 217: loose indentation

C:\Users\Daniel\Desktop\prohlds.ro\gamemodes\prohlds.pwn(26916) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          9784 bytes

Code size:          1801140 bytes

Data size:          5531944 bytes

Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)

Total requirements: 7359252 bytes

5 Warnings.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

#include <a_samp>

#include <core>

#include <float>

#include <time>

#include <file>

#include <utils>

#include <morphinc>

#include <JunkBuster>

#include <MidoStream>

static gTeam[MAX_PLAYERS];

#pragma tabsize 0

si asa

#include <a_samp>

#include <core>

#include <float>

#include <time>

#include <file>

#include <utils>

#include <morphinc>

#include <JunkBuster>

#include <MidoStream>

#pragma tabsize 0

static gTeam[MAX_PLAYERS];

tot imi apar acelea

Link to comment
Share on other sites

=-" post="51827" timestamp="1296161226"]

Adauga pe la inceputul scriptului, dupa #include ... linia asta

#pragma tabsize 0
Ba esti culmea, nu da sfaturi prostesti... RenDy, uitate la liniile 26894 26897 26900 26912 26916 din GM, si vezi ce nu ti se pare la locul lui. De exemplu sa zicem ca ai publicul asta
public OnPlayerConnect( playerid )
{
    pVar[ playerid ] = 0;
     pVar2[ playerid ] = 0;
   return 1;
}
Ceea ce este incorect si va da warn la pVar2[ playerid ]  spunand ca nu este bine identat, deci va trebuio sa arate asa
public OnPlayerConnect( playerid )
{
   pVar[ playerid ] = 0;
   pVar2[ playerid ] = 0;
   return 1;
}

Alineat frumos.

Link to comment
Share on other sites

Am incercat si tot la fel .uitati cum am intre acele erori adica intre 26895-26917

  }

                SetPlayerHealth(playerid,999);

                SetPlayerArmour(playerid,31000000000);

          }

          else

          {

      new name[MAX_PLAYER_NAME];

              GetPlayerName(playerid,name,MAX_PLAYER_NAME);

              format(string,sizeof(string),"Admin %s is no longer on Duty.",name,playerid);

              SendClientMessageToAll(0x756FEEFF,string);

              AdminDuty[playerid] = 0;

              new pname[16];

              GetPlayerName(playerid,pname,16);

              strdel(pname, strlen(pname)-5, strlen(pname));

              if(aodtag[playerid] == 1)

              {

                  aodtag[playerid] = 0;

                  SetPlayerName(playerid,pname);

              }

            SetPlayerHealth(playerid,100);

            SetPlayerArmour(playerid,000);

          }

      }

      return 1;

Link to comment
Share on other sites

I-a incearca acuma

}
                SetPlayerHealth(playerid,999);
                SetPlayerArmour(playerid,31000000000);
          }
          else
          {
               new name[MAX_PLAYER_NAME];
               GetPlayerName(playerid,name,MAX_PLAYER_NAME);
               format(string,sizeof(string),"Admin %s is no longer on Duty.",name,playerid);
               SendClientMessageToAll(0x756FEEFF,string);
               AdminDuty[playerid] = 0;
               new pname[16];
               GetPlayerName(playerid,pname,16);
               strdel(pname, strlen(pname)-5, strlen(pname));
               if(aodtag[playerid] == 1)
               {
                  aodtag[playerid] = 0;
                  SetPlayerName(playerid,pname);
               }
               SetPlayerHealth(playerid,100);
               SetPlayerArmour(playerid,000);
         }
      }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By GamerulFOX
      Salut ! Cine ma poate ajuta cu erorile astea ? am folosit acest tutorial 

    • By BaDB0y95
      Am si eu aceste erori si se da crash pe server 
       
      [12:02:08] [debug] Run time error 4: "Array index out of bounds"
      [12:02:08] [debug]  Accessing element at negative index -1
      [12:02:08] [debug] AMX backtrace:
      [12:02:08] [debug] #0 001bf4f4 in public OnPlayerKeyStateChange (0, 65536, 0) from gamemode.amx
      [12:02:12] [debug] Run time error 4: "Array index out of bounds"
      [12:02:12] [debug]  Accessing element at negative index -1
      [12:02:12] [debug] AMX backtrace:
       
    • By Alexandru Mihalescu
      Primesc eroriile aste dintr-un fisier YSI, am intrat in fisierul ala si nu stiu exact ce sa ii fac...

    • By SMARDEX
      ..\YSI_Coding\y_unique\y_unique_entry.inc(134) : error 001: expected token: ";", but found "static"
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 033: array must be indexed (variable "pattern")
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 029: invalid expression, assumed zero
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : error 029: invalid expression, assumed zero
      C:\Users\alexs\OneDrive\Desktop\hyper\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_amx_impl.inc(434) : fatal error 107: too many error messages on one line
    • By CyberNeticK
      salut, sunt nou in scripting cum credeti ca as putea sa rezolv eroare asta fratilor 
       
      C:\Users\crist\Desktop\New folder\gamemodes\fox.pwn(3379) : error 017: undefined symbol "PlayerInfo"
      C:\Users\crist\Desktop\New folder\gamemodes\fox.pwn(3379) : error 029: invalid expression, assumed zero
      C:\Users\crist\Desktop\New folder\gamemodes\fox.pwn(3379) : warning 215: expression has no effect
      C:\Users\crist\Desktop\New folder\gamemodes\fox.pwn(3379) : error 001: expected token: ";", but found "]"
      C:\Users\crist\Desktop\New folder\gamemodes\fox.pwn(3379) : fatal error 107: too many error messages on one line
      Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

      4 Errors.
       
      iar linia 3379 este asta : if(PlayerInfo[playerid][pCarVipColors][idcar] == 0) format(string, sizeof(string), "{FFFFFF}%s", CarVipName[playerid][idcar]);
       
      asa arata intregul script: 
      public SetVipText(playerid, idcar)
      {
          new string[128];
          if(strlen(CarVipName[playerid][idcar]) > 0)
          {
              if(PlayerInfo[playerid][pCarVipColors][idcar] == 0) format(string, sizeof(string), "{FFFFFF}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 1) format(string, sizeof(string), "{FF0000}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 2) format(string, sizeof(string), "{640000}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 3) format(string, sizeof(string), "{00FF00}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 4) format(string, sizeof(string), "{004B01}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 5) format(string, sizeof(string), "{008DFF}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 6) format(string, sizeof(string), "{001AFF}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 7) format(string, sizeof(string), "{FFFF00}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 😎 format(string, sizeof(string), "{FF6B00}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 9) format(string, sizeof(string), "{EB00FF}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 10) format(string, sizeof(string), "{590056}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 11) format(string, sizeof(string), "{8A8A8A}%s", CarVipName[playerid][idcar]);
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 12) format(string, sizeof(string), "{000000}%s", CarVipName[playerid][idcar]); //=
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 13) format(string, sizeof(string), "{28B2E0}%s", CarVipName[playerid][idcar]); //--- Adaugate de DrooM!
              else if(PlayerInfo[playerid][pCarVipColors][idcar] == 14) format(string, sizeof(string), "{F20C9A}%s", CarVipName[playerid][idcar]); //=
              DestroyObject(vObject[PlayerInfo[playerid][pCarID][idcar]]);
              vObject[PlayerInfo[playerid][pCarID][idcar]] = CreateObject(19327,0,0,-1000,0,0,0,100);
              SetObjectMaterialText(vObject[PlayerInfo[playerid][pCarID][idcar]], string, 0, OBJECT_MATERIAL_SIZE_256x128, "Comic Sans MS", 18, 1, 0xFFFFFFFF, 0, 1);
              if(PlayerInfo[playerid][pCarModel][idcar] == 411) AttachObjectToVehicle(vObject[PlayerInfo[playerid][pCarID][idcar]], PlayerInfo[playerid][pCarID][idcar], -0.029999, -1.974998, 0.233999, -84.824964, 0.000000, 0.000000);
              else if(PlayerInfo[playerid][pCarModel][idcar] == 541) AttachObjectToVehicle(vObject[PlayerInfo[playerid][pCarID][idcar]], PlayerInfo[playerid][pCarID][idcar], 0.000000, -1.649998, 0.390999, -76.379989, 0.000000, 0.000000);
              else if(PlayerInfo[playerid][pCarModel][idcar] == 560) AttachObjectToVehicle(vObject[PlayerInfo[playerid][pCarID][idcar]], PlayerInfo[playerid][pCarID][idcar], 0.000000, -0.614999, 0.799999, -88.439956, 0.000000, 0.000000);
              else if(PlayerInfo[playerid][pCarModel][idcar] == 451) AttachObjectToVehicle(vObject[PlayerInfo[playerid][pCarID][idcar]], PlayerInfo[playerid][pCarID][idcar], 0.000000, -0.6, 0.56, 270.0, 0.0, 0.0);
              else if(PlayerInfo[playerid][pCarModel][idcar] == 480) AttachObjectToVehicle(vObject[PlayerInfo[playerid][pCarID][idcar]], PlayerInfo[playerid][pCarID][idcar], 0.000000, -1.58, 0.27, 270.0, 0.0, 0.0);
          }
          return 1;
      }
       
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.