[POMOC] Kako ovo da popravim?

Započeo TheMonk
15. Jan. 2011.
550
pregleda
2
postova
adam
5
Kingpin
15. Jan. 2011.
E ovako,napravio sam polaganje i ja kad polazem radi mi sve,a drugi igraci ne mogu,stanu na prvi cp i koda ga nisu pokupili,jos stoji,a meni sve normalno radi,cuo sam da je problem u tome sto samo valjda ID 0 moze a ostali ne mogu,nzm nisam siguran,evo komanda:
pPolaganje,
if(strcmp(cmd, "/buydriving", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
          if(PlayerToPoint(3.0, playerid, 1490.9655,1305.8336,1093.2964))
        {
              if(PlayerInfo > 0)
              {
                    SendClientMessage(playerid, COLOR_GREY, ": Vec imate aktivirano polaganje!");
                    return 1;
              }
            if(PlayerInfo == 0)
            {

                      SendClientMessage(playerid,COLOR_LIGHTBLUE,": Aktivirali ste polaganje!");
                      SendClientMessage(playerid,COLOR_LIGHTBLUE,": Udjite u neko od cetiri zelenih vozila!");
                      SafeGivePlayerMoney(playerid, - 15000);
                      PlayerInfo = 1;
                      SetPlayerCheckpoint(playerid, 2073.5898,-1911.5688,13.4218,4.0);
                      CP = 900;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, ": Vec imate vozacku dozvolu!");
                  return 1;
              }
        }
      }
      return 1;
  }
	  else if(CP == 900) { CP = 901; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2073.5898,-1911.5688,13.4218,4.0); } //1
  else if(CP == 901) { CP = 902; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2084.4504,-1877.6687,13.2015,4.0); } //2
  else if(CP == 902) { CP = 903; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2048.3701,-1810.2151,13.2578,4.0); } //3
  else if(CP == 903) { CP = 904; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1963.7791,-1782.6118,13.2578,4.0); } //4
  else if(CP == 904) { CP = 905; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1943.9347,-1715.4976,13.2614,4.0); } //5
  else if(CP == 905) { CP = 906; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1869.8175,-1609.7745,13.2575,4.0); } //6
  else if(CP == 906) { CP = 907; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1728.0251,-1593.5107,13.2461,4.0); } //7
  else if(CP == 907) { CP = 908; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1550.3834,-1589.9502,13.2578,4.0); } //8
  else if(CP == 908) { CP = 909; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1527.0872,-1714.5530,13.2579,4.0); } //9
  else if(CP == 909) { CP = 910; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1567.1941,-1757.6771,13.2578,4.0); } //10
  else if(CP == 910) { CP = 911; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1645.1003,-1874.6790,13.2578,4.0); } //11
  else if(CP == 911) { CP = 912; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1725.0852,-1816.9805,13.2354,4.0); } //12
  else if(CP == 912) { CP = 913; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1819.4724,-1873.4774,13.2848,4.0); } //13
  else if(CP == 913) { CP = 914; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1874.5612,-1934.4431,13.2578,4.0); } //14
  else if(CP == 914) { CP = 915; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2055.2722,-1916.1339,13.4218,4.0); } //15
  else if(CP == 915)
  {
      DisablePlayerCheckpoint(playerid);
      PlayerInfo = 1;//daje vozacku dozvolu igracu
      SetVehicleToRespawn(GetPlayerVehicleID(playerid));//respawna vozilo
      RemovePlayerFromVehicle(playerid);//izbacuje igraca iz vozila
      SendClientMessage(playerid, COLOR_LIGHTBLUE ,": Cestitamo! Dobili ste Vozacku Dozvolu!");//salje poruku igracu
  }

Mod je gtarp (gf edit)...
Johnâ„¢
5
Godfather
15. Jan. 2011.
Nisam siguran, ali probaj u komandi promjenit CP = 900; u CP = 900;

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha