[POMOC] Izbacuje mi Errore

Započeo NikolaTodorko, Februar 20, 2011, 23:07:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Balkan Underground
Detaljan opis problema: Ja sam sredjivao nesto oko mog GM-a (oko ovih errora sto je pokazalo nista nisam dirao) i sredjivao neke skinove .. mjestio bandi i kad sam compile ono mi izbaci 24 errora
Dio skripte:
Evo mali dio...

          SafeGivePlayerMoney(i, value);
          BizzInfo[bizid][bTill] -= value;
      }
   }
   return 1;
}

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
   {
       return 0;
   }
   foreach (Player, i)
   {
        new name[MAX_PLAYER_NAME];
      new wstring[MAX_PLAYER_NAME];
      GetPlayerName(i, name, sizeof(name));
      format(string, sizeof(string), "%s", name);
      strmid(wstring, string, 0, strlen(string), 255);
      if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
      {
          new value = money / 100;
          value = value * 10;
          SafeGivePlayerMoney(i, value);
          SBizzInfo[bizid][sbTill] -= value;
      }
   }
   return 1;
}

public PreparePaintball()
{
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
        }
   }
   SetTimer("StartPaintball", 20000, 0);
   return 1;
}

public StartPaintball()
{
   PaintballRound = 1;
   StartingPaintballRound = 0;
   PaintballWinner = 999;
   PaintballWinnerKills = 0;
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
        }
   }
   SetTimer("PaintballEnded", 240000, 0);
   return 1;
}

a evo sta pokazuje C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2056) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2082) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2112) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2137) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2229) : error 004: function "IsACopCar" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2240) : error 004: function "IsNgCar" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2251) : error 004: function "IsNpcVehicle" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2262) : error 004: function "IsAnAmbulance" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2265) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2267) : error 004: function "IsATank" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2270) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2386) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2390) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2401) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2413) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2417) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2429) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2433) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2437) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2441) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2445) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2449) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2453) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2457) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2461) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

Zaboravio si negdje zatvoriti zagradu "}".

Upamti: Broj otvorenih i zatvorenih zagrada "{" i "}" uvijek mora biti jednak.

i drugi puta pokusaj koristiti code.
Poslednja Izmena: Februar 20, 2011, 23:21:00 POSLE PODNE od [NS]Michael

Pa nzm :S .. Ako moze da ti nekako send to pa ti ako mozes da sredis .. necu celi GM samo cu ti send to sta nije u redu .. Jer moze >?

Citat: NikolaTodorko poslato Februar 20, 2011, 23:42:28 POSLE PODNE
Pa nzm :S .. Ako moze da ti nekako send to pa ti ako mozes da sredis .. necu celi GM samo cu ti send to sta nije u redu .. Jer moze >?

to si me vec pitao u PM, pa sam ti rekao da postas ovdje linije na kojima ti javlja error, pa da vidim u cem si pogrijesio

      new    SafeGivePlayerMoney(i, value);
          BizzInfo[bizid][bTill] -= value;
      }
   }
   return 1;
}

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
   {
       return 0;
   }
   foreach (Player, i)
   {
        new name[MAX_PLAYER_NAME];
      new wstring[MAX_PLAYER_NAME];
      GetPlayerName(i, name, sizeof(name));
      format(string, sizeof(string), "%s", name);
      strmid(wstring, string, 0, strlen(string), 255);
      if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
      {
          new value = money / 100;
          value = value * 10;
          SafeGivePlayerMoney(i, value);
          SBizzInfo[bizid][sbTill] -= value;
      }
   }
   return 1;
}

public PreparePaintball()
{
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
        }
   }
   SetTimer("StartPaintball", 20000, 0);
   }
   return 1;
}

public StartPaintball()
{
   PaintballRound = 1;
   StartingPaintballRound = 0;
   PaintballWinner = 999;
   PaintballWinnerKills = 0;
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
        }
   }
   SetTimer("PaintballEnded", 240000, 0);
   }
   return 1;
}

public PaintballEnded()
{
   new string[256];
   new name[MAX_PLAYER_NAME];
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            if(IsPlayerConnected(PaintballWinner))
            {
                GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
            }
            SafeResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
        }
   }
   AnnouncedPaintballRound = 0;
    PaintballRound = 0;
    }
   return 1;
}

public PrepareKarting()
{
   foreach (Player, i)
   {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 9;
         SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
         SendClientMessage(i, COLOR_YELLOW, "Kart Race will start in 20 seconds, go to the starting line.");
        }
   }
   SetTimer("StartKarting", 20000, 0);
   return 1;
}

public StartKarting()
{
   KartingRound = 1;
   StartingKartRound = 0;
   EndingKartRound = 0;
   FirstKartWinner = 999;
   SecondKartWinner = 999;
   ThirdKartWinner = 999;
   foreach (Player, i)
   {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 10;
            SendClientMessage(i, COLOR_YELLOW, "Green light, go go go !");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
            SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
        }
   }
   SetTimer("KartingEnded", 240000, 0);
   return 1;
}

public KartingEnded()
{
   foreach (Player, i)
   {
        if(PlayerKarting != 0 && PlayerInKart != 0)
        {
            CP = 0;
            DisablePlayerCheckpoint(i);
        }
   }
   AnnouncedKartRound = 0;
    KartingRound = 0;
   return 1;
}

public DollahScoreUpdate()
{
   new LevScore;
   foreach (Player, i)
   {
      LevScore = PlayerInfo[pLevel];
      SetPlayerScore(i, LevScore);
   }
   return 1;
}

public Encrypt(string[])
{
   for(new x=0; x < strlen(string); x++)
     {
        string
  • += (3^x) * (x % 15);
            if(string
  • > (0xff))
            {
               string
  • -= 256;
            }
         }
       return 1;
    }

    //------------------------------------------------------------------------------------------------------

    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
       if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
       {
          if (IsACopCar(vehicleid) && !ispassenger)
          {
             if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pLeader]==11||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pMember]==11) {}
              else {
                //WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
             }
          }
          if (IsNgCar(vehicleid) && !ispassenger)
          {
              if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
              else {
                //WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
             }
          }
          if (IsNpcVehicle(vehicleid) && !ispassenger)
          {
              if(PlayerInfo[playerid][pLeader]==100) {}
              else {
                //WantedPoints[playerid]+=2;
                //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
                new Float:cx, Float:cy, Float:cz;
                GetPlayerPos(playerid, cx, cy, cz);
                SetPlayerPos(playerid, cx,  cy, cz);
             }
          }
          if (IsAnAmbulance(vehicleid) && !ispassenger)
          {
              if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
              else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja vozila hitne pomoci"); }
          }
          if (IsATank(vehicleid) && !ispassenger)
          {
             if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {}
              else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja Tenka"); SendClientMessage(playerid, COLOR_GREY,"You don't know how to drive it yet."); }
          }
          if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
          {
              if(PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1) { }
              else
              {
                 new Float:cx, Float:cy, Float:cz;
                 GetPlayerPos(playerid, cx, cy, cz);
                 SetPlayerPos(playerid, cx, cy, cz);
             }
          }
       }
       return 1;
    }

    /*public IsAnInstructor(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           new leader = PlayerInfo[playerid][pLeader];
           new member = PlayerInfo[playerid][pMember];
           if(member==11)
          {
              return 1;
          }
          if(leader==11)
          {
              return 1;
          }
       }
       return 0;
    }*/

    public IsAMember(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           new leader = PlayerInfo[playerid][pLeader];
           new member = PlayerInfo[playerid][pMember];
           if(member==5 || member==6 || member==8 || member==12 || member==14 || member==15 || member==16)
          {
              return 1;
          }
          if(leader==5 || leader==6 || leader==8 || leader==12 || leader==14 || leader==15 || leader==16)
          {
              return 1;
          }
       }
       return 0;
    }

    public IsACop(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           new leader = PlayerInfo[playerid][pLeader];
           new member = PlayerInfo[playerid][pMember];
           if(member==1 || member==2 || member==3 || member==11)
          {
              return 1;
          }
          else if(leader==1 || leader==2 || leader==3 || leader==11)
          {
              return 1;
          }
       }
       return 0;
    }

    public IsAGang(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           new leader = PlayerInfo[playerid][pLeader];
           new member = PlayerInfo[playerid][pMember];
           if(member==5 || member==6 || member==8 || member==12 || member==15 || member==16)
          {
              return 1;
          }
          else if(leader==5 || leader==6 || leader==8 || leader==12 || leader==15 || leader==16)
          {
              return 1;
          }
       }
       return 0;
    }

    public IsAPDMember(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           new leader = PlayerInfo[playerid][pLeader];
           new member = PlayerInfo[playerid][pMember];
           if(member==1 || member==11)
          {
              return 1;
          }
          else if(leader==1 || leader==11)
          {
              return 1;
          }
       }
       return 0;
    }

    public IsAnOwnableCar(vehicleid)
    {
       if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
       return 0;
    }

    public IsAtDealership(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerToPoint(30.0,playerid,1081.2784,-1751.6011,13.4388) || PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007) || PlayerToPoint(100,playerid,142.5537109375, -2002.1171875, 0.84999966621399) || PlayerToPoint(50,playerid,1048.8964,-904.7892,42.4164))
          {
             return 1;
          }
          else if(PlayerToPoint(5,playerid,1524.5046386719,-2459.6262207031,12.5546875) || PlayerToPoint(5,playerid,1606.0760498047,-2458.5505371094,12.5546855) || PlayerToPoint(5,playerid,1686.1015625000,-2458.8513183594,12.5546855) || PlayerToPoint(5,playerid,1765.3842773438,-2459.8420410156,12.5546875) || PlayerToPoint(5,playerid,1645.9104003906,-2458.6958007813,12.5546875) || PlayerToPoint(5,playerid,1727.7492675781,-2459.1301269531,12.5546875))
          {
             return 1;
          }
       }
       return 0;
    }
    public IsAtCarrental(playerid)
    {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063))
          {
             return 1;
          }
       }
       return 0;
    }

    public IsAtClothShop(playerid)
    {
        if(IsPlayerConnected(playerid))
       {
            if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
          //Binco & Suburban
              return 1;
          }
          else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
          //Zip & Victim
              return 1;
          }
       }
       return 0;
    }

    public IsAtGasStation(playerid)
    {
        if(IsPlayerConnected(playerid))
       {
          if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
          //LS
              return 1;
          }
          else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
          //LS
              return 1;
          }
          else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
          //SF
              return 1;
          }
          else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
          //Between LS and SF
              return 1;
          }
          else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
          //LV
              return 1;
          }
          else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
          //LV
              return 1;
          }
          else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
          //LV
              return 1;
          }

    Tu mi pokazuje sve errore

mislim da ti na ovome ne valjaju zagrade. xD.

public PreparePaintball()
{
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
        }
    }
    SetTimer("StartPaintball", 20000, 0);
    }
   return 1;
}

public StartPaintball()
{
   PaintballRound = 1;
   StartingPaintballRound = 0;
   PaintballWinner = 999;
   PaintballWinnerKills = 0;
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
        }
   }
   SetTimer("PaintballEnded", 240000, 0);
   }
   return 1;
}

public PaintballEnded()
{
   new string[256];
   new name[MAX_PLAYER_NAME];
   foreach (Player, i)
   {
        if(PlayerPaintballing != 0)
        {
            if(IsPlayerConnected(PaintballWinner))
            {
                GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
            }
            SafeResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
        }
   }
   AnnouncedPaintballRound = 0;
    PaintballRound = 0;
    }
   return 1;
}


imas ih viska


Citat: NikolaTodorko poslato Februar 20, 2011, 23:58:18 POSLE PODNE
Ako mozes srediti ?  :o

evo ga. sredjeno. probaj.

public PreparePaintball()
{
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
}
}
   SetTimer("StartPaintball", 20000, 0);
  return 1;
}

public StartPaintball()
{
PaintballRound = 1;
StartingPaintballRound = 0;
PaintballWinner = 999;
PaintballWinnerKills = 0;
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SafeResetPlayerWeapons(i);
           SafeGivePlayerWeapon(i, 29, 999);
           TogglePlayerControllable(i, 1);
           SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
           PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
}
SetTimer("PaintballEnded", 240000, 0);
return 1;
}

public PaintballEnded()
{
new string[256];
new name[MAX_PLAYER_NAME];
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
if(IsPlayerConnected(PaintballWinner))
{
GetPlayerName(PaintballWinner, name, sizeof(name));
               format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
               SendClientMessage(i, COLOR_WHITE, string);
}
SafeResetPlayerWeapons(i);
           PlayerPaintballing = 0;
           SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
}
}
AnnouncedPaintballRound = 0;
PaintballRound = 0;
return 1;
}


i drugi put koristi CODE.
Poslednja Izmena: Februar 21, 2011, 00:04:58 PRE PODNE od [NS]Michael

Evo sta mi sad izbacuje

C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2056) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2056) : error 004: function "PreparePaintball" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2058) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2060) : error 033: array must be indexed (variable "PlayerPaintballing")
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2069) : warning 225: unreachable code
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2069) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2069) : error 004: function "StartPaintball" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2075) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2077) : error 033: array must be indexed (variable "PlayerPaintballing")
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2079) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2080) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2090) : warning 225: unreachable code
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2090) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2090) : error 004: function "PaintballEnded" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2092) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2093) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2094) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2096) : error 033: array must be indexed (variable "PlayerPaintballing")
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2104) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2105) : error 033: array must be indexed (variable "PlayerPaintballing")
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : warning 225: unreachable code
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : warning 215: expression has no effect
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Nikola\Desktop\gamemodes\StaffofDreams.pwn(2113) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


17 Errors.


To je ovo :

   public PreparePaintball()
{
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
         SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
      }
   }
    SetTimer("StartPaintball", 20000, 0);
      return 1;
}

public StartPaintball()
{
   PaintballRound = 1;
   StartingPaintballRound = 0;
   PaintballWinner = 999;
   PaintballWinnerKills = 0;
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
         SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
      }
   }
   SetTimer("PaintballEnded", 240000, 0);
   return 1;
}

public PaintballEnded()
{
   new string[256];
   new name[MAX_PLAYER_NAME];
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
         if(IsPlayerConnected(PaintballWinner))
         {
            GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
         }
         SafeResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
      }
   }
   AnnouncedPaintballRound = 0;
   PaintballRound = 0;
   return 1;
}
      else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))

onda trebaju one zagrade sto sam obrisao. xD. a i sad me mal ovo zbunjuje.

I mene .. Neznam sta da radim :@ .. Ako mozes srediti .. sredi .. moze i do sutra .. nije problem

A sto ti ne bi skinuo opet balkan underground mod i c/p stari u taj sto ti daje erore?Tako ti je najlakse,ovo sto si postao nmg da gledam jer nmg da se snadjem,stavi u code ...:S

   public PreparePaintball()
{
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
          SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
      }
   }
    SetTimer("StartPaintball", 20000, 0);
      return 1;
}

public StartPaintball()
{
   PaintballRound = 1;
   StartingPaintballRound = 0;
   PaintballWinner = 999;
   PaintballWinnerKills = 0;
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
         SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1);
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
      }
   }
   SetTimer("PaintballEnded", 240000, 0);
   return 1;
}

public PaintballEnded()
{
   new string[256];
   new name[MAX_PLAYER_NAME];
   foreach (Player, i)
   {
      if(PlayerPaintballing != 0)
      {
         if(IsPlayerConnected(PaintballWinner))
         {
            GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
         }
         SafeResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
      }
   }
   AnnouncedPaintballRound = 0;
   PaintballRound = 0;
   return 1;
}
      else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))


Evo code ae molim vas pomozite

Hmm znas sto se zna desit?Kada probas compilat cita ti druge includese.Udi pod pawno od BUa i imas gore u kutu opciju da otvoris neku skriptu
i tu otvoris BU mode. Meni je bilo tako rjesio sam
Citat: Correlli poslato Maj 03, 2011, 17:45:02 POSLE PODNE
Citat: Petar_Black poslato Maj 03, 2011, 17:19:10 POSLE PODNE
Ohh..Nisam se nadao da ce ovakve odlicne ocene biti..:D..Na prvoj stranici sve 0/10 a na drugoj 100000/10 :D...Hvala puno..:DD :-*

U moju si temu došao, a ne u svoju...
Hahahah koji isus izgubio se malo :D