[HELP] JOB.
#1

Hello, i make /takejob for bus and something. But if(PlayerToPoint is incorrect.

pawn Код:
if(strcmp(cmd,"/takejob",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pJob] == 0)
            {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                      SendClientMessage(playerid, COLOR_SVETLOZELENA, "----------------------------[LEGALNI POSLOVI]--------------------------");
                      SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /takejob [ime posla]");
                      SendClientMessage(playerid, COLOR_WHITE, "Dostupni poslovi: VozacBusa, Ribolovac, Bodyguard, Odvjetnik, Mehanicar, Grobar, Kamiondzija, Diler Droge, Diler Oruzja");
                      SendClientMessage(playerid, COLOR_SVETLOZELENA, "---------------------------------------------------------------------------");
                      return 1;
                   }
             if(strcmp(x_nr,"Smetlar",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao smetlar - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 30;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"VozacBusa",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 1752.4957,-1894.1644,13.5574))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao vozac busa - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 31;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
       }
       if(strcmp(x_nr,"Ribolovac",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao ribolovac - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 34;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"KosacTrave",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao kosac trave - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 33;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Bodyguard",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao bodyguard - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 8;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Hacker",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
                         if(PlayerInfo[playerid][pDonateRank] < 1)
                         {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                            SendClientMessage(playerid, COLOR_GREY, "   Za ovaj posao je potreban Donator Rank !");
                            return 1;
                         }
                         SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao hacker - Koristite /help komandu da vidite komande posla.");
                         PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                         PlayerInfo[playerid][pJob] = 17;
                         PlayerInfo[playerid][pContractTime] = 0;
                       }
                   }
                   if(strcmp(x_nr,"LazniPolicajac",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao lazni policajac - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 35;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"CarDealer",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao prodavac automobila - Koristite /help komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 10;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Kamiondzija",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 1083.0132,-1226.5704,15.8203))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao vozac kamiona - Koristite /help komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 16;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Detektiv",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao detektiv - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 1;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"DilerDroge",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao diler droge - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 4;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"DilerOruzja",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao diler oruzja - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 9;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Mehanicar",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao mehanicar - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 7;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
       if(strcmp(x_nr,"Poljoprivrednik",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao poljoprivrednik - Koristite /help komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 20;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"Taxista",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao taksista - Koristite /help komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 22;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
                   if(strcmp(x_nr,"CistacUlica",true) == 0)
                   {
                      if (PlayerInfo[playerid][pJob] == 0)
                      {
             if(PlayerToPoint(5.0,playerid, 359.3790,182.2823,1008.3828))
             {
                   new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                      if(!strlen(x_nr)) {
                          SendClientMessage(playerid, COLOR_GOLD, "INFO: Cestitamo, zaposlili ste se kao cistac ulica - Koristite /jobhelp komandu da vidite komande posla.");
                          PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                          PlayerInfo[playerid][pJob] = 36;
                          PlayerInfo[playerid][pContractTime] = 0;
                      }
                   }
               }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Nisi u gradskoj vjecnici ili vec imas posao !");
                return 1;
            }
This errors came.

Код:
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(4991) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(4995) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5007) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5011) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5015) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5019) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5023) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5027) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5031) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5043) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5047) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5051) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5055) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5059) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5071) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5075) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5079) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5091) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5095) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5250) : error 004: function "CheckOwner" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(5932) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(6807) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(6819) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(6831) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(6843) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Edmir\Desktop\Cro Balkan\gamemodes\crobalkan.pwn(6863) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Lock - a make this
Reply
#3

REALLY NOW?Sorry,but when I see PlayerToPoint,I get mad,use IsPlayerInRangeOfPoint
Reply
#4

I suggest you stop Ripping scripts/codes from other scripts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)