Jump to content
  • 0

problema job trucker


crazyzee

Question

Salut am o problema cu jobul trucker , dupa ce setez jobul si ma urc in masina de truck cand dau /load zice you are non in a delivery car , cand dau /buyprods apare Produse 0/0 , cam de unde sa fie problema ?

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

24 answers to this question

Recommended Posts

Comanda /load :

[pawn]if(strcmp(cmd, "/load", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

new tmpcar = GetPlayerVehicleID(playerid);

if(tmpcar < 86 || tmpcar > 89)

{

GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1);

return 1;

}

format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

}

return 1;

}[/pawn]

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Poftim mura-n gura:

	if(strcmp(cmd, "/load", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			if(tmpcar < 109 || tmpcar > 112)
			{
				GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1);
				return 1;
			}
			format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
			SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
		}
		return 1;
	}
Daca ai vreo preferinta la vehicule temporale, pui pe ale tale:
if(tmpcar < 109 || tmpcar > 112)
Schimband in:
if(tmpcar < 86 || tmpcar > 89)

Dar preferat sa lasi ca mine! :)

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

Link to comment
Share on other sites

Poftim mura-n gura:

	if(strcmp(cmd, "/load", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			if(tmpcar < 109 || tmpcar > 112)
			{
				GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1);
				return 1;
			}
			format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
			SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
		}
		return 1;
	}
Daca ai vreo preferinta la vehicule temporale, pui pe ale tale:
if(tmpcar < 109 || tmpcar > 112)
Schimband in:
if(tmpcar < 86 || tmpcar > 89)

Dar preferat sa lasi ca mine! :)

tot asa zice " you are not in a delivery car " , nu merge nici /buyprods :-|

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Comanda: /load!

if(strcmp(cmd, "/load", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			if(tmpcar < 78 || tmpcar > 81)
			{
				GameTextForPlayer(playerid, "~r~Nu sunteti într-un camion de livrare", 5000, 1);
				return 1;
			}
			format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
			SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
		}
		return 1;
	}
Comanda: /buyprods
if(strcmp(cmd, "/buyprods", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			new compcost = 50;
			if(PlayerToPoint(60.0, playerid, 2787.8,-2436.3,13.7))
			{
				if(IsATruck(tmpcar))
				{
					if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])
					{
					    new amount;
					    tmp = strtok(cmdtext, idx);
						if(!strlen(tmp))
						{
							SendClientMessage(playerid, COLOR_GRAD1, "Tasteaza: /buyprods [amount]");
							return 1;
						}
						amount = strval(tmp);
						if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "Nu pot cumpara mai putin de 1 Produs sau mai mult de 500!");  return 1; }
						new check= PlayerHaul[tmpcar][pLoad] + amount;
						if(check > PlayerHaul[tmpcar][pCapasity])
						{
						    format(string, sizeof(string), "   You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);
						    SendClientMessage(playerid, COLOR_GREY, string);
						    return 1;
						}
						new cost = amount*compcost;
						if(GetPlayerMoney(playerid) >= cost)
						{
							PlayerHaul[tmpcar][pLoad] += amount;
							format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							format(string, sizeof(string), "Ai cumparat %d Produse pentru $%d.", amount,cost);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							GivePlayerMoney(playerid,-cost);
							PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							return 1;
						}
					}
					else
					{
							format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acest vehicul nu livreaza produse.");
					return 1;
				}
			}
		}
		return 1;
	}
Comanda: /sellprods
if(strcmp(cmd, "/sellprods", true) == 0)
	{
	    new cashmade;
	    new tmpcar;
	    if(IsPlayerConnected(playerid))
		{
			tmpcar = GetPlayerVehicleID(playerid);
			if(!IsATruck(tmpcar))
			{
				GameTextForPlayer(playerid, "~r~Tu nu te aflii intr-o masina de vanzare.", 5000, 1);
				return 1;
			}
			if(PlayerHaul[tmpcar][pLoad] == 0)
			{
				GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1);
				format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
				SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
				return 1;
			}
			for(new i = 0; i < sizeof(BizzInfo); i++)
			{
				if (PlayerToPoint(10, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
				{
					//printf("Found House :%d",i);
					for(new l = PlayerHaul[tmpcar][pLoad]; l > 0; l--)
					{
						if(BizzInfo[i][bProducts] == BizzInfo[i][bMaxProducts])
						{
							GameTextForPlayer(playerid, "~r~Bizul este plin", 5000, 1);
							format(string, sizeof(string), "Bani primiti $%d.", cashmade);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
							return 1;
						}
						if(BizzInfo[i][bPriceProd] > BizzInfo[i][bTill])
						{
							GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1);
							format(string, sizeof(string), "Bani primiti $%d.", cashmade);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
							return 1;
						}
						PlayerHaul[tmpcar][pLoad]--;
						BizzInfo[i][bProducts]++;
						cashmade = cashmade+BizzInfo[i][bPriceProd];
						ConsumingMoney[playerid] = 1;
						GivePlayerMoney(playerid,BizzInfo[i][bPriceProd]);
						BizzInfo[i][bTill] -= BizzInfo[i][bPriceProd];
						if(PlayerHaul[tmpcar][pLoad] == 0)
						{
							GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1);
							format(string, sizeof(string), "Bani primiti $%d.", cashmade);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
							return 1;
						}
					}
					OnPropUpdate();
					return 1;
				}
			}
		}
		for(new i = 0; i < sizeof(SBizzInfo); i++)
		{
			if (PlayerToPoint(10, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
			{
				//printf("Found House :%d",i);
				for(new l = PlayerHaul[tmpcar][pLoad]; l > 0; l--)
				{
					if(SBizzInfo[i][sbProducts] == SBizzInfo[i][sbMaxProducts])
					{
						GameTextForPlayer(playerid, "~r~Our stores are full", 5000, 1);
						format(string, sizeof(string), "Cash Earned $%d.", cashmade);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						return 1;
					}
					if(SBizzInfo[i][sbPriceProd] > SBizzInfo[i][sbTill])
					{
						GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1);
						format(string, sizeof(string), "Cash Earned $%d.", cashmade);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						return 1;
					}
					PlayerHaul[tmpcar][pLoad]--;
					SBizzInfo[i][sbProducts]++;
					cashmade = cashmade+SBizzInfo[i][sbPriceProd];
					ConsumingMoney[playerid] = 1;
					GivePlayerMoney(playerid,SBizzInfo[i][sbPriceProd]);
					SBizzInfo[i][sbTill] -= SBizzInfo[i][sbPriceProd];
					if(PlayerHaul[tmpcar][pLoad] == 0)
					{
						GameTextForPlayer(playerid, "~r~Truck is empty, return in stock house", 5000, 1);
						format(string, sizeof(string), "Cash Earned $%d.", cashmade);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
						SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
						return 1;
					}
				}
				OnPropUpdate();
				return 1;
			}
		}
		GameTextForPlayer(playerid, "~r~To Far From A Business", 5000, 1);
		return 1;
	}

Trebuie sa-ti mearga asa, daca nu, posteaza!

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

Link to comment
Share on other sites

Acum imi da erorile astea :

[pawn]D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(32875) : warning 202: number of arguments does not match definition

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(32893) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Warnings.

[/pawn]

EDIT : Uite asa apare ...

54942af4db.png

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Comanda: /buyprods

if(strcmp(cmd, "/buyprods", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new tmpcar = GetPlayerVehicleID(playerid);
			new compcost = 20;
			if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469))
			{
				if(IsATruck(tmpcar))
				{
					if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])
					{
					    new amount;
					    tmp = strtok(cmdtext, idx);
						if(!strlen(tmp))
						{
							SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}Gamez-Arena RPG RP-GF{FFFFFF}]: /buyprods [amount]");
							return 1;
						}
						amount = strval(tmp);
						if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "   Can't buy less then 1 Product or more then 500!"); return 1; }
						new check= PlayerHaul[tmpcar][pLoad] + amount;
						if(check > PlayerHaul[tmpcar][pCapasity])
						{
						    format(string, sizeof(string), "   You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);
						    SendClientMessage(playerid, COLOR_GREY, string);
						    return 1;
						}
						new cost = amount*compcost;
						if(GetPlayerCash(playerid) >= cost)
						{
							PlayerHaul[tmpcar][pLoad] += amount;
							format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							GivePlayerCash(playerid,-cost);
							PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
							SBizzInfo[12][sbTill] += cost;//prods buisness
							ExtortionSBiz(12, 100);
							return 1;
						}
						else
						{
							format(string, sizeof(string), "You cant afford %d Products at $%d!", amount,cost);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							return 1;
						}
					}
					else
					{
							format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
							SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
							return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");
				return 1;
			}
		}
		return 1;
	}

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

Link to comment
Share on other sites

[pawn]if(strcmp(cmd, "/buyprods", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

new tmpcar = GetPlayerVehicleID(playerid);

new compcost = 50;

if(PlayerToPoint(60.0, playerid, aicix,aiciy,aiciz))

{

if(IsATruck(tmpcar))

{

if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])

{

    new amount;

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "Tasteaza: /buyprods [amount]");

return 1;

}

amount = strval(tmp);

if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "Nu pot cumpara mai putin de 1 Produs sau mai mult de 500!");  return 1; }

new check= PlayerHaul[tmpcar][pLoad] + amount;

if(check > PlayerHaul[tmpcar][pCapasity])

{

    format(string, sizeof(string), "  You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);

    SendClientMessage(playerid, COLOR_GREY, string);

    return 1;

}

new cost = amount*compcost;

if(GetPlayerMoney(playerid) >= cost)

{

PlayerHaul[tmpcar][pLoad] += amount;

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

format(string, sizeof(string), "Ai cumparat %d Produse pentru $%d.", amount,cost);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

GivePlayerMoney(playerid,-cost);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

return 1;

}

else

{

format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

return 1;

}

}

else

{

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

return 1;

}

}

else

{

SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acest vehicul nu livreaza produse.");

return 1;

}

}

}

return 1;

} [/pawn]

in loc de aicix,aiciy,aiciz pui coordonatele x,y,z. acele coordonate le ei din joc dand /save cred ca stii asta

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Am si eu o problema asemanatoare. Am mai cautat pe net si tot nu am reusit sa-i dau de cap. Cand scriu /dl am ID-urile de la masinile de la job trucker de la 171 pana la 176 (vazusem pe alte forumuri ca numerele alea de la tmpcar trebuie sa coincida cu id-ul masinii in joc)

[pawn]    if(strcmp(cmd, "/load", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

new tmpcar = GetPlayerVehicleID(playerid);

            if(tmpcar < 171 || tmpcar > 174)

{

GameTextForPlayer(playerid, "~r~Nu sunteti într-un camion de livrare", 5000, 1);

return 1;

}

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

}

return 1;

}

    if(strcmp(cmd, "/buyprods", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

new tmpcar = GetPlayerVehicleID(playerid);

new compcost = 50;

if(PlayerToPoint(60.0, playerid, 2781.6907,-2417.5854,13.8078))

{

if(IsATruck(tmpcar))

{

if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])

{

    new amount;

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "Tasteaza: /buyprods [amount]");

return 1;

}

amount = strval(tmp);

if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "Nu pot cumpara mai putin de 1 Produs sau mai mult de 500!");  return 1; }

new check= PlayerHaul[tmpcar][pLoad] + amount;

if(check > PlayerHaul[tmpcar][pCapasity])

{

    format(string, sizeof(string), "  You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);

    SendClientMessage(playerid, COLOR_GREY, string);

    return 1;

}

new cost = amount*compcost;

if(GetPlayerMoney(playerid) >= cost)

{

PlayerHaul[tmpcar][pLoad] += amount;

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

format(string, sizeof(string), "Ai cumparat %d Produse pentru $%d.", amount,cost);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

GivePlayerMoney(playerid,-cost);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

return 1;

}

else

{

format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

return 1;

}

}

else

{

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

return 1;

}

}

else

{

SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acest vehicul nu livreaza produse.");

return 1;

}

}

}

return 1;

}

if(strcmp(cmd, "/sellprods", true) == 0)

{

    new cashmade;

    new tmpcar;

    if(IsPlayerConnected(playerid))

{

tmpcar = GetPlayerVehicleID(playerid);

if(!IsATruck(tmpcar))

{

GameTextForPlayer(playerid, "~r~Tu nu te aflii intr-o masina de vanzare.", 5000, 1);

return 1;

}

if(PlayerHaul[tmpcar][pLoad] == 0)

{

GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1);

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

return 1;

}

for(new i = 0; i < sizeof(BizzInfo); i++)

{

if (PlayerToPoint(10, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]))

{

//printf("Found House :%d",i);

for(new l = PlayerHaul[tmpcar][pLoad]; l > 0; l--)

{

if(BizzInfo[bProducts] == BizzInfo[bMaxProducts])

{

GameTextForPlayer(playerid, "~r~Bizul este plin", 5000, 1);

format(string, sizeof(string), "Bani primiti $%d.", cashmade);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

return 1;

}

if(BizzInfo[bPriceProd] > BizzInfo[bTill])

{

GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1);

format(string, sizeof(string), "Bani primiti $%d.", cashmade);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

return 1;

}

PlayerHaul[tmpcar][pLoad]--;

BizzInfo[bProducts]++;

cashmade = cashmade+BizzInfo[bPriceProd];

ConsumingMoney[playerid] = 1;

GivePlayerMoney(playerid,BizzInfo[bPriceProd]);

BizzInfo[bTill] -= BizzInfo[bPriceProd];

if(PlayerHaul[tmpcar][pLoad] == 0)

{

GameTextForPlayer(playerid, "~r~Camionul este gol , dute si incarca-l.", 5000, 1);

format(string, sizeof(string), "Bani primiti $%d.", cashmade);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

format(string, sizeof(string), "Produse: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

return 1;

}

}

OnPropUpdate();

return 1;

}

}

}[/pawn]

Acestea sunt comenzile /load /buyprods & /sellprods. Singura eroare la mine este "Acest vehicul nu livreaza produse"...

Link to comment
Share on other sites

Dute in masinilie care le ai la trucker , urcate in fiecare si dai /carid ;

Notezi id-urile masinilor si le treci aici , in comanda /load

if(tmpcar < 171 || tmpcar > 174)

.

Dupa, cauta in gm linia pCapacity , ar trebui sa ai ceva de genu asta ,

[pawn]PlayerHaul[565][pCapasity] = 100;

PlayerHaul[566][pCapasity] = 100;

PlayerHaul[567][pCapasity] = 100;

PlayerHaul[568][pCapasity] = 50;

PlayerHaul[569][pCapasity] = 50;

PlayerHaul[570][pCapasity] = 50;[/pawn]

Trebuie sa treci id-urile masinilor de la trucker.

EXEMPLU : PlayerHaul[ID MASINA][pCapasity] = 100;

Sper sa te descurci , daca nu revino si te ajutam.

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

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.