Jump to content
  • 0

Problema trucker # nu se pune checkpoint


newbie.

Question

Problema intalnita (descriere): Dupa ce duc marfa nu imi pune checkpointul de unde trebuie sa aleg iarasi o marfa din dialog.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): 

if(Trucker[playerid] >= 1)
	{
    	new pertransport;
    	if(!IsPlayerInAnyVehicle(playerid)) return 1;
    	if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && IsATruck(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai niciun trailer atasat!");
    	DestroyVehicle(viddd[playerid]);
		DisablePlayerCheckpoint(playerid);
    	viddd[playerid] = 0;
    	if(Trucker[playerid] == 1)
    	{
     		pertransport = 60000 + random(15000);
    		Trucker2[playerid] = 2;
    		SetPlayerCheckpoint(playerid,CHKTruck2[2][0],CHKTruck2[2][1],CHKTruck2[2][2],5.0);
		}
		else if(Trucker[playerid] == 2)
		{
  			pertransport = 70000 + random(20000);
 			Trucker2[playerid] = 2;
 			SetPlayerCheckpoint(playerid,CHKTruck2[4][0],CHKTruck2[4][1],CHKTruck2[4][2],5.0);
		}
		else if(Trucker[playerid] == 3)
		{
		    pertransport = 70000 + random(20000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[11][0],CHKTruck2[11][1],CHKTruck2[11][2],5.0);
		}
		else if(Trucker[playerid] == 4)
		{
		    pertransport = 70000 + random(30000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[10][0],CHKTruck2[10][1],CHKTruck2[10][2],5.0);
		}
		else if(Trucker[playerid] == 5)
		{
     		pertransport = 60000 + random(35000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[7][0],CHKTruck2[7][1],CHKTruck2[7][2],5.0);
		}
		else if(Trucker[playerid] == 6)
		{
     		pertransport = 90000 + random(40000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[6][0],CHKTruck2[6][1],CHKTruck2[6][2],5.0);
		}
		else if(Trucker[playerid] == 7)
		{
     		pertransport = 60000 + random(30000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[8][0],CHKTruck2[8][1],CHKTruck2[8][2],5.0);
		}
		else if(Trucker[playerid] == 8)
		{
     		pertransport = 60000 + random(27000);
	    	Trucker2[playerid] = 3;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[9][0],CHKTruck2[9][1],CHKTruck2[9][2],5.0);
		}
		else if(Trucker[playerid] == 9)
		{
     		pertransport = 60000 + random(23000);
	    	Trucker2[playerid] = 2;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[3][0],CHKTruck2[3][1],CHKTruck2[3][2],5.0);
		}
		else if(Trucker[playerid] == 10)
		{
		    pertransport = 70000 + random(22000);
	    	Trucker2[playerid] = 2;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[5][0],CHKTruck2[5][1],CHKTruck2[5][2],5.0);
		}
		else if(Trucker[playerid] == 11)
		{
     		pertransport = 60000 + random(20000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[12][0],CHKTruck2[12][1],CHKTruck2[12][2],5.0);
		}
		else if(Trucker[playerid] == 12)
		{
     		pertransport = 90000 + random(22000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[13][0],CHKTruck2[13][1],CHKTruck2[13][2],5.0);
		}
		else if(Trucker[playerid] == 13)
		{
     		pertransport = 60000 + random(22000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[17][0],CHKTruck2[17][1],CHKTruck2[17][2],5.0);
		}
		else if(Trucker[playerid] == 14)
		{
		    pertransport = 70000 + random(280000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[15][0],CHKTruck2[15][1],CHKTruck2[15][2],5.0);
		}
		else if(Trucker[playerid] == 15)
		{
		    pertransport = 70000 + random(31000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[16][0],CHKTruck2[16][1],CHKTruck2[16][2],5.0);
		}
		else if(Trucker[playerid] == 16)
		{
     		pertransport = 60000 + random(30000);
	    	Trucker2[playerid] = 4;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[14][0],CHKTruck2[14][1],CHKTruck2[14][2],5.0);
		}
		else if(Trucker[playerid] == 17)
		{
     		pertransport = 70000 + random(25000);
	    	Trucker2[playerid] = 1;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[0][0],CHKTruck2[0][1],CHKTruck2[0][2],5.0);
		}
		else if(Trucker[playerid] == 18)
		{
     		pertransport = 75000 + random(15000);
	    	Trucker2[playerid] = 2;
	    	SetPlayerCheckpoint(playerid,CHKTruck2[1][0],CHKTruck2[1][1],CHKTruck2[1][2],5.0);
		}
		new string[156];
		playerVariables[playerid][pMoney] += pertransport;
		Trucker[playerid] = 0;
		format(string,sizeof(string),"(+) Ai primit $%s pentru livrarea marfii.", NumberFormat(pertransport));
		SendClientMessage(playerid, COLOR_ATTACK, string);
	}
	else if(Trucker2[playerid] == 1) //Langa Gas Station(primul)
	{
	    SetTimerEx("Truckerr1", 200, 0, "i",playerid);
	}
	else if(Trucker2[playerid] == 2)//IN LS
	{
	    SetTimerEx("Truckerr2", 200, 0, "i",playerid);
	}
	else if(Trucker2[playerid] == 3)//IN LV
	{
	    SetTimerEx("Truckerr3", 200, 0, "i",playerid);
	}
	else if(Trucker2[playerid] == 4)//IN SF
	{
	    SetTimerEx("Truckerr4", 200, 0, "i",playerid);
	}

Iar CHKTruck 

new Float:CHKTruck2[18][3] = {
{-119.2522,-1218.2719,2.9902}, //LANGA GAS LS ---- CHECKS LS
{1361.1011,-906.6476,35.3157}, //LANGA 24/7 Store LS
{2078.8257,-1706.9739,13.3906}, //LANGA Pizza Boy LS
{2683.8926,-1683.9061,9.4250}, //LANGA 8 Track LS
{2609.1416,-2393.7742,13.6271}, //LANGA Chop Shop LS
{2158.9236,-1725.8071,13.5389}, //LANGA Crack House LS
{2101.4238,2803.3069,10.8203}, //near GAS LV ---- CHECKS LV
{2116.0403,2189.2769,10.8203}, //LANGA Clothing Soter LV
{2426.0283,2005.2286,10.8203}, //LANGA Burger Shot LV
{2478.9539,1640.6306,10.8203}, //near Pool LV
{2029.4589,1418.5114,10.8203}, //LANGA Pirate Ship LV
{1441.4424,1005.0969,10.8203}, //LANGA Chuckup LV
{-1731.8619,-71.2586,3.5489}, //near Ship SF ---- CHECKS SF
{-1714.7142,352.0824,7.1875}, //LANGA GAS SF
{-1647.4458,1291.6462,7.0391}, //LANGA Pier 69 SF
{-2132.7087,769.0834,69.5625}, //near Supa Save SF
{-2468.7771,1231.8475,35.2001}, //LANGA Restaurant SF
{-2184.9126,-409.3924,35.3359} //LANGA Homies SF
};


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da... dar tot nu merge.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Daca ai da UP din 5 in 5 minute cred ca ar fi mai ok.

 

Spoiler

 

if(Trucker[playerid] >= 1)
    {
        new pertransport;
        if(!IsPlayerInAnyVehicle(playerid)) return 1;
        if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && IsATruck(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai niciun trailer atasat!");
        DestroyVehicle(viddd[playerid]);
        DisablePlayerCheckpoint(playerid);
        viddd[playerid] = 0;
        Trucker2[playerid] = 1;
        if(Trucker[playerid] == 1)
        {
             pertransport = 60000 + random(15000);
            Trucker2[playerid] = 2;
            SetPlayerCheckpoint(playerid,CHKTruck2[2][0],CHKTruck2[2][1],CHKTruck2[2][2],5.0);
        }
        else if(Trucker[playerid] == 2)
        {
              pertransport = 70000 + random(20000);
             Trucker2[playerid] = 2;
             SetPlayerCheckpoint(playerid,CHKTruck2[4][0],CHKTruck2[4][1],CHKTruck2[4][2],5.0);
        }
        else if(Trucker[playerid] == 3)
        {
            pertransport = 70000 + random(20000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[11][0],CHKTruck2[11][1],CHKTruck2[11][2],5.0);
        }
        else if(Trucker[playerid] == 4)
        {
            pertransport = 70000 + random(30000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[10][0],CHKTruck2[10][1],CHKTruck2[10][2],5.0);
        }
        else if(Trucker[playerid] == 5)
        {
             pertransport = 60000 + random(35000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[7][0],CHKTruck2[7][1],CHKTruck2[7][2],5.0);
        }
        else if(Trucker[playerid] == 6)
        {
             pertransport = 90000 + random(40000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[6][0],CHKTruck2[6][1],CHKTruck2[6][2],5.0);
        }
        else if(Trucker[playerid] == 7)
        {
             pertransport = 60000 + random(30000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[8][0],CHKTruck2[8][1],CHKTruck2[8][2],5.0);
        }
        else if(Trucker[playerid] == 8)
        {
             pertransport = 60000 + random(27000);
            Trucker2[playerid] = 3;
            SetPlayerCheckpoint(playerid,CHKTruck2[9][0],CHKTruck2[9][1],CHKTruck2[9][2],5.0);
        }
        else if(Trucker[playerid] == 9)
        {
             pertransport = 60000 + random(23000);
            Trucker2[playerid] = 2;
            SetPlayerCheckpoint(playerid,CHKTruck2[3][0],CHKTruck2[3][1],CHKTruck2[3][2],5.0);
        }
        else if(Trucker[playerid] == 10)
        {
            pertransport = 70000 + random(22000);
            Trucker2[playerid] = 2;
            SetPlayerCheckpoint(playerid,CHKTruck2[5][0],CHKTruck2[5][1],CHKTruck2[5][2],5.0);
        }
        else if(Trucker[playerid] == 11)
        {
             pertransport = 60000 + random(20000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[12][0],CHKTruck2[12][1],CHKTruck2[12][2],5.0);
        }
        else if(Trucker[playerid] == 12)
        {
             pertransport = 90000 + random(22000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[13][0],CHKTruck2[13][1],CHKTruck2[13][2],5.0);
        }
        else if(Trucker[playerid] == 13)
        {
             pertransport = 60000 + random(22000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[17][0],CHKTruck2[17][1],CHKTruck2[17][2],5.0);
        }
        else if(Trucker[playerid] == 14)
        {
            pertransport = 70000 + random(280000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[15][0],CHKTruck2[15][1],CHKTruck2[15][2],5.0);
        }
        else if(Trucker[playerid] == 15)
        {
            pertransport = 70000 + random(31000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[16][0],CHKTruck2[16][1],CHKTruck2[16][2],5.0);
        }
        else if(Trucker[playerid] == 16)
        {
             pertransport = 60000 + random(30000);
            Trucker2[playerid] = 4;
            SetPlayerCheckpoint(playerid,CHKTruck2[14][0],CHKTruck2[14][1],CHKTruck2[14][2],5.0);
        }
        else if(Trucker[playerid] == 17)
        {
             pertransport = 70000 + random(25000);
            Trucker2[playerid] = 1;
            SetPlayerCheckpoint(playerid,CHKTruck2[0][0],CHKTruck2[0][1],CHKTruck2[0][2],5.0);
        }
        else if(Trucker[playerid] == 18)
        {
             pertransport = 75000 + random(15000);
            Trucker2[playerid] = 2;
            SetPlayerCheckpoint(playerid,CHKTruck2[1][0],CHKTruck2[1][1],CHKTruck2[1][2],5.0);
        }
        new string[156];
        playerVariables[playerid][pMoney] += pertransport;
        Trucker[playerid] = 0;
        format(string,sizeof(string),"(+) Ai primit $%s pentru livrarea marfii.", NumberFormat(pertransport));
        SendClientMessage(playerid, COLOR_ATTACK, string);
    }
    else if(Trucker2[playerid] == 1) //Langa Gas Station(primul)
    {
        SetTimerEx("Truckerr1", 200, 0, "i",playerid);
    }
    else if(Trucker2[playerid] == 2)//IN LS
    {
        SetTimerEx("Truckerr2", 200, 0, "i",playerid);
    }
    else if(Trucker2[playerid] == 3)//IN LV
    {
        SetTimerEx("Truckerr3", 200, 0, "i",playerid);
    }
    else if(Trucker2[playerid] == 4)//IN SF
    {
        SetTimerEx("Truckerr4", 200, 0, "i",playerid);
    }

Iar CHKTruck

new Float:CHKTruck2[18][3] = {
{-119.2522,-1218.2719,2.9902}, //LANGA GAS LS ---- CHECKS LS
{1361.1011,-906.6476,35.3157}, //LANGA 24/7 Store LS
{2078.8257,-1706.9739,13.3906}, //LANGA Pizza Boy LS
{2683.8926,-1683.9061,9.4250}, //LANGA 8 Track LS
{2609.1416,-2393.7742,13.6271}, //LANGA Chop Shop LS
{2158.9236,-1725.8071,13.5389}, //LANGA Crack House LS
{2101.4238,2803.3069,10.8203}, //near GAS LV ---- CHECKS LV
{2116.0403,2189.2769,10.8203}, //LANGA Clothing Soter LV
{2426.0283,2005.2286,10.8203}, //LANGA Burger Shot LV
{2478.9539,1640.6306,10.8203}, //near Pool LV
{2029.4589,1418.5114,10.8203}, //LANGA Pirate Ship LV
{1441.4424,1005.0969,10.8203}, //LANGA Chuckup LV
{-1731.8619,-71.2586,3.5489}, //near Ship SF ---- CHECKS SF
{-1714.7142,352.0824,7.1875}, //LANGA GAS SF
{-1647.4458,1291.6462,7.0391}, //LANGA Pier 69 SF
{-2132.7087,769.0834,69.5625}, //near Supa Save SF
{-2468.7771,1231.8475,35.2001}, //LANGA Restaurant SF
{-2184.9126,-409.3924,35.3359} //LANGA Homies SF
};

 

Incearca asa.

 

 

Link to comment
Share on other sites

  • 0

In ordinea asta le ai si in GM??? Aranjeaza daca da.

Liber ca pasarea cerului.

#DELETEBUGGED #FUCKBUGGGED

P.S.:Tu plodule, da tu plodule nu te gandii ca am ciuda pe bugged, nu eu am ciuda pe faptul ca acapareaza din ce in ce mai mult mintile copiilor mai straluciti si ii transforma in scammer si viitori boschetari. Hai sa schimbam ceva! Hai sa schimbam Romania!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.