[Pomoc] /posao

Započeo [GU:RP] ivica 156, Januar 07, 2012, 05:05:12 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:kada se igrac zaposli morao je kucat posao i onda da se zaposli /prihvati ja sam obrisao prihvati i u /posao na kraju dodao ifgetjob uostalon budete vidjeli i baca mi ove errore:
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4214) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4225) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4259) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4264) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4269) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4318) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4322) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4327) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4332) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4337) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4342) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4346) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4350) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4354) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4358) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4362) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4366) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4370) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4384) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4388) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4392) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4396) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4400) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4414) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4418) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Barcelona\Desktop\G-Unit v1.0.7 0.3d\gamemodes\G-Unit.pwn(4422) : error 004: function "PlayerToPoint" is not implemented

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

evo komande /posao
   if(strcmp(cmd, "/posao", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
            if(PlayerInfo[playerid][pJob] == 0)
         {

                if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1264.8372,-1275.2622,13.5408))
            {
                if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                    SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Gradjevinar i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, COLOR_NICERED, "* Ako si siguran da zelis postati Gradjevinar upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 1) {
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,366.6119,159.0560,1008.3828))
            {
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Odvjetnik i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, COLOR_NICERED, "* Ako si siguran da zelis postati Odvjetnik upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 2) {
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2417.1777,-1221.5059,25.1827))
            {
                    SendClientMessage(playerid,CRVENA,"*****************************************************************");
                SendClientMessage(playerid, ZELENA, "* Želite postati"#COL_RED" Prostitutka"#COL_GREEN" i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati"#COL_RED" Prostitutka "#COL_GREEN" upiÅ¡i /potvrdi.");
                    SendClientMessage(playerid,CRVENA,"*****************************************************************");
                if(GettingJob[playerid] > 3) {
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1301.1484,-1244.9697,13.5469))
            {
                if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Diler Droge i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Diler Droge upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 4) {
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1958.1123,-1148.0717,21.5951))
            {
                if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 2 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Kosac Trave i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Kosac Trave upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 5) {
            }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1619.0703,-1855.9366,13.5474))
             {
                 if(PlayerInfo[playerid][pLevel] < 1) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 1 kako bi radio ovaj posao!"); //
                 SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Mehanicar i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Mehanicar upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 7) {
              }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,756.6003,5.9379,1000.6996))
            {
                if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                    SendClientMessage(playerid, ZELENA, "* Želite postati Bodyguard i prihvatiti ugovor od 5 sati?");
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Prvo moras ispuniti ugovor ako kasnije želiÅ¡ napustiti posao.");
                SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Bodyguard upiÅ¡i /potvrdi.");
               if(GettingJob[playerid] > 8) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1423.2181,-1298.4423,13.5547))
              {
                  if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Diler Oruzija i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati Diler Oruzija upiÅ¡i /potvrdi.");
                      if(GettingJob[playerid] > 9) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.7780,-1439.1926,26.2960))
              {
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Farmer i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati Farmer upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 11) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,996.4232,-1297.0530,13.5469))
              {
                  SendClientMessage(playerid, ZELENA, "* Želite postati"#COL_RED" Bokser"#COL_GREEN" i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati"#COL_RED" Bokser"#COL_GREEN" upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 12) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1496.8878,-1491.3438,13.1240))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "Zelite se zaposliti i raditi za Unikom i prihvatiti ugovor od 5 Sati!");
                    if(GettingJob[playerid] > 13) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1753.3544,-1894.1719,13.5572))
              {
                  if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 2 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Zelite li postati Vozac busa i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 14) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,987.1605,-1267.0710,16.9865))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Postar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 6) {
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2484.8572,-2120.3691,13.5469))
              {
                  if(PlayerInfo[playerid][pLevel] < 6) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 6 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Vozac Goriva i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 16) {
            }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1630.0435,-1903.2373,13.5530))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Cistac ulica i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ORANGE, "* Ako si siguran da zelis postati Cistac ulica upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 17) {
              }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2183.1738,-2253.3293,14.7724))
              {
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Prodavac sladoleda i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 18) {
            }
            //Posao Ribar
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,154.2135,-1945.8431,4.9070))
              {
              if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, COLOR_ALLDEPT, "* Želite postati Ribar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 21) {
            }
            //Posao Grobar
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,898.9681,-1069.3398,24.4510))
              {
              if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, COLOR_ALLDEPT, "* Želite postati Grobar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 24) {
            }
            //Posao Vlakovodja
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1743.1707,-1944.3771,13.5669))
            {
            if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Vlakovodja i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 22) {
            }
            //Posao Dostavljac Sokova
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid, 1776.1244,-1704.9429,13.5215))
            {
            if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, COLOR_WHITE, "(posao) Zaposlili ste se kao dostavljac sokova!");
                SendClientMessage(playerid, COLOR_WHITE, "(posao) Komande posla: /sprunk!");
                    if(GettingJob[playerid] > 23) {
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2104.0442,-1806.6678,13.1166))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, ZELENA, "* Želite postati Prodavac PiZza i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 19) {//PiZza Boy
            }
            else
              {
                  SendClientMessage(playerid, SIVA, "(greska) Niste na mjestu za zaposljavanje!");
              }
         }
         else
         {
             SendClientMessage(playerid, SIVA, "(greska) Vi ste vec zaposleni!");
         }
      }
       return 1;
   }
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Nemaš dovoljan broj otvorenih i zatvorenih zagrada.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

sta znaci to jel se moze dodaot ili?

Citat: ivica 156 poslato Januar 07, 2012, 05:13:02 PRE PODNE
sta znaci to jel se moze dodaot ili?
pogledaj tamo di si zadnje radio negdje ti je viska ili manjka {} prebroj morati ti biti jednak broj...

e znam da sam dosadan ali biste li mi vi mogli slozit komandu ja sam sada opet pokusao ali opet mi to izbacuje mozda mi fali nesta u komandi /posao

Ovo bi trebalo raditi :

if(strcmp(cmd, "/posao", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
            if(PlayerInfo[playerid][pJob] == 0)
         {

                if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1264.8372,-1275.2622,13.5408))
            {
                if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                    SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Gradjevinar i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, COLOR_NICERED, "* Ako si siguran da zelis postati Gradjevinar upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 1) {}
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,366.6119,159.0560,1008.3828))
            {
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Odvjetnik i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, COLOR_NICERED, "* Ako si siguran da zelis postati Odvjetnik upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 2) {}
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2417.1777,-1221.5059,25.1827))
            {
                    SendClientMessage(playerid,CRVENA,"*****************************************************************");
                SendClientMessage(playerid, ZELENA, "* Želite postati"#COL_RED" Prostitutka"#COL_GREEN" i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati"#COL_RED" Prostitutka "#COL_GREEN" upiÅ¡i /potvrdi.");
                    SendClientMessage(playerid,CRVENA,"*****************************************************************");
                if(GettingJob[playerid] > 3) {}
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1301.1484,-1244.9697,13.5469))
            {
                if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Diler Droge i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Diler Droge upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 4) {}
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1958.1123,-1148.0717,21.5951))
            {
                if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 2 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Kosac Trave i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Kosac Trave upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 5) {}
            }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1619.0703,-1855.9366,13.5474))
             {
                 if(PlayerInfo[playerid][pLevel] < 1) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 1 kako bi radio ovaj posao!"); //
                 SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Mehanicar i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Mehanicar upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 7) {}
              }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,756.6003,5.9379,1000.6996))
            {
                if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                    SendClientMessage(playerid, ZELENA, "* Želite postati Bodyguard i prihvatiti ugovor od 5 sati?");
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Prvo moras ispuniti ugovor ako kasnije želiÅ¡ napustiti posao.");
                SendClientMessage(playerid, SVETLOPLAVA, "* Ako si siguran da zelis postati Bodyguard upiÅ¡i /potvrdi.");
               if(GettingJob[playerid] > 1) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1423.2181,-1298.4423,13.5547))
              {
                  if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Diler Oruzija i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati Diler Oruzija upiÅ¡i /potvrdi.");
                      if(GettingJob[playerid] > 9) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.7780,-1439.1926,26.2960))
              {
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Farmer i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati Farmer upiÅ¡i /potvrdi.");
                   if(GettingJob[playerid] > 11) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,996.4232,-1297.0530,13.5469))
              {
                  SendClientMessage(playerid, ZELENA, "* Želite postati"#COL_RED" Bokser"#COL_GREEN" i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ZELENA, "* Ako si siguran da zelis postati"#COL_RED" Bokser"#COL_GREEN" upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 12) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1496.8878,-1491.3438,13.1240))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "Zelite se zaposliti i raditi za Unikom i prihvatiti ugovor od 5 Sati!");
                    if(GettingJob[playerid] > 13) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1753.3544,-1894.1719,13.5572))
              {
                  if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 2 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Zelite li postati Vozac busa i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 14) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,987.1605,-1267.0710,16.9865))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Postar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 6) {}
              }
              else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2484.8572,-2120.3691,13.5469))
              {
                  if(PlayerInfo[playerid][pLevel] < 6) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 6 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Vozac Goriva i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 16) {}
            }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1630.0435,-1903.2373,13.5530))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Cistac ulica i prihvatiti ugovor od 5 sati?");
                    SendClientMessage(playerid, ORANGE, "* Ako si siguran da zelis postati Cistac ulica upiÅ¡i /potvrdi.");
                    if(GettingJob[playerid] > 17) {}
              }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2183.1738,-2253.3293,14.7724))
              {
                  SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Prodavac sladoleda i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 18) {}
            }
            //Posao Ribar
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,154.2135,-1945.8431,4.9070))
              {
              if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, COLOR_ALLDEPT, "* Želite postati Ribar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 21) {}
            }
            //Posao Grobar
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,898.9681,-1069.3398,24.4510))
              {
              if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, COLOR_ALLDEPT, "* Želite postati Grobar i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 24) {}
            }
            //Posao Vlakovodja
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1743.1707,-1944.3771,13.5669))
            {
            if(PlayerInfo[playerid][pLevel] < 5) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 5 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, TEAM_CUN_COLOR, "* Želite postati Vlakovodja i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 22) { }
            }
            //Posao Dostavljac Sokova
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid, 1776.1244,-1704.9429,13.5215))
            {
            if(PlayerInfo[playerid][pLevel] < 4) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 4 kako bi radio ovaj posao!"); //
                SendClientMessage(playerid, COLOR_WHITE, "(posao) Zaposlili ste se kao dostavljac sokova!");
                SendClientMessage(playerid, COLOR_WHITE, "(posao) Komande posla: /sprunk!");
                    if(GettingJob[playerid] > 23) {}
            }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2104.0442,-1806.6678,13.1166))
              {
                  if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, -1,"{C3C3C3}(greska) Moras biti lvl 3 kako bi radio ovaj posao!"); //
                  SendClientMessage(playerid, ZELENA, "* Želite postati Prodavac PiZza i prihvatiti ugovor od 5 sati?");
                    if(GettingJob[playerid] > 19) {} //PiZza Boy
            }
            else return SendClientMessage(playerid, SIVA, "(greska) Niste na mjestu za zaposljavanje!");
         }
         else return SendClientMessage(playerid, SIVA, "(greska) Vi ste vec zaposleni!");
      }
       return 1;
   }
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

radi sve ali kad dodem ne prizna mi posao?

Naravno da ti ''ne prizna'' posao kad nigdje nisi stavio da mu stavi taj posao koji želiš , ja sam ti sredio ovo , dobivanje posla možeš sam. ;)
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

kako mislis pa ima ispod getig job

Pa gdje si stavio da mu postavlja vrijednost te varijable? Gdje si mu postavio da mu da posao? Nigdje , zato ti ni neradi.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

pa zelim da mu bude to sve u jednoj komandi da kad odma kuca /posao da ga odma i zaposli jel moguce da to stavim ispod onplayerconnect u komandi /posao?

Citat: ivica 156 poslato Januar 07, 2012, 17:48:06 POSLE PODNE
pa zelim da mu bude to sve u jednoj komandi da kad odma kuca /posao da ga odma i zaposli jel moguce da to stavim ispod onplayerconnect u komandi /posao?

Pa nemoj stavljat onda nikakav GettingJob kada možeš mu samo pJob varijablu postaviti na posao koji želiš.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

znaci maknem ono geting job i stavim samo pJob?

Ne već staviš PlayerInfo[playerid][pJob] = ID_POSLA;

Kako namjeravaš raditi onda komande , kada neznaš kako napraviti provjeru imali taj posao i ostalo...
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong