[POMOC] Kako ovo da popravim?

Započeo TheMonk, Januar 15, 2011, 05:56:43 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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[playerid][pPolaganje] > 0)
               {
                     SendClientMessage(playerid, COLOR_GREY, "[INSTRUKTOR]: Vec imate aktivirano polaganje!");
                    return 1;
               }
            if(PlayerInfo[playerid][pCarLic] == 0)
            {

                      SendClientMessage(playerid,COLOR_LIGHTBLUE,"[INSTRUKTOR]: Aktivirali ste polaganje!");
                      SendClientMessage(playerid,COLOR_LIGHTBLUE,"[INSTRUKTOR]: Udjite u neko od cetiri zelenih vozila!");
                      SafeGivePlayerMoney(playerid, - 15000);
                      PlayerInfo[playerid][pPolaganje] = 1;
                      SetPlayerCheckpoint(playerid, 2073.5898,-1911.5688,13.4218,4.0);
                      CP[giveplayerid] = 900;
            }
            else
            {
                 SendClientMessage(playerid, COLOR_GREY, "[INSTRUKTOR]: Vec imate vozacku dozvolu!");
                   return 1;
              }
         }
      }
      return 1;
   }

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

Mod je gtarp (gf edit)...

Nisam siguran, ali probaj u komandi promjenit CP[giveplayerid] = 900; u CP[playerid] = 900;

Last nick: Paradox