Jump to content
  • 0

/sellcarto nu functioneaza.


Bogdan's

Question

Problema intalnita (descriere): Nu merge /sellcarto scriu /sellcarto si apare mesajul cu ce trebuie sa scriu dar cand scriu deja id-ul playerului nu mai merge.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

if(strcmp(cmd, "/sellcarto", true) == 0)
	{
	    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { }
	    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { }
	    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { }
	    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey4]) { }
	    else { SendClientMessage(playerid, COLOR_GREY, "  Nu esti intr-un vehicul."); return 1; }
		new numeveh[35];
		GetPlayerName(playerid, numeveh, sizeof(numeveh));
		new ownvehkey = GetPlayerVehicleID(playerid);
		if(!IsAnOwnableCar(ownvehkey)) { return 1; }
		if(strcmp(numeveh, CarInfo[ownvehkey][cOwner], true) == 0)
		{
						tmp = strtok(cmdtext, idx);
						if(!strlen(tmp))
						{
						    SendClientMessage(playerid, COLOR_LIGHTBLUE, ">>{FFFFFF}SUGESTIE: /sellcarto [IDJucator/PARTEdinNUME] [pret]");
						    return 1;
						}
						giveplayerid = ReturnUser(tmp);
						if(IsPlayerConnected(giveplayerid))
						{
							if(giveplayerid != INVALID_PLAYER_ID)
							{
							    if(ProxDetectorS(8.0, playerid, giveplayerid))
       							{
       								if(PlayerInfo[giveplayerid][pPcarkey] == 9999)
							    	{
							            tmp = strtok(cmdtext, idx);
							            if(!strlen(tmp))
							            {
							                SendClientMessage(playerid, COLOR_LIGHTBLUE, ">>{FFFFFF}SUGESTIE: /sellto [IDJucator/PARTEdinNUME] [pret]");
							                return 1;
							            }
							            new price;
							            price = strval(tmp);
							            if(price < 1 || price > 10000000)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Pretul trebuie sa fie intre $1 si $10000000. ");
							                return 1;
							            }
							            if(PlayerInfo[playerid][pLevel] < 5)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa ai minim nivel 5. ");
							                return 1;
							            }
							            if(PlayerInfo[giveplayerid][pLevel] < 3)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Jucatorul nu are nivel 3. ");
							                return 1;
							            }
										GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
										GetPlayerName(playerid, sendername, sizeof(sendername));
							       		format(string, sizeof(string), "* I-ai oferit lui %s vehiculul pentru $%d .", giveplayer, price);
					        			SendClientMessage(playerid, COLOR_WHITE, string);
					        			format(string, sizeof(string), "* Proprietarul vehiculului %s iti ofera vehiculul cu $%d (scrie /accept car) pentru a o cumpara.", sendername, price);
					        			SendClientMessage(giveplayerid, COLOR_WHITE, string);
					        			CarOffer[giveplayerid] = playerid;
					        			CarID[giveplayerid] = ownvehkey;
					        			CarPrice[giveplayerid] = price;
					        			return 1;
					        		}
					        		else if(PlayerInfo[giveplayerid][pPcarkey2] == 9999)
							    	{
							            tmp = strtok(cmdtext, idx);
							            if(!strlen(tmp))
							            {
							                SendClientMessage(playerid, COLOR_LIGHTBLUE, ">>{FFFFFF}SUGESTIE: /sellto [IDJucator/PARTEdinNUME] [pret]");
							                return 1;
							            }
							            new price;
							            price = strval(tmp);
							            if(price < 1 || price > 10000000)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Pretul trebuie sa fie intre $1 si $10000000. ");
							                return 1;
							            }
							            if(PlayerInfo[playerid][pLevel] < 5)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa ai minim nivel 5. ");
							                return 1;
							            }
							            if(PlayerInfo[giveplayerid][pLevel] < 3)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Jucatorul nu are nivel 3. ");
							                return 1;
							            }
										GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
										GetPlayerName(playerid, sendername, sizeof(sendername));
							       		format(string, sizeof(string), "* I-ai oferit lui %s vehiculul pentru $%d .", giveplayer, price);
					        			SendClientMessage(playerid, COLOR_WHITE, string);
					        			format(string, sizeof(string), "* Proprietarul vehiculului %s iti ofera vehiculul cu $%d (scrie /accept car) pentru a o cumpara.", sendername, price);
					        			SendClientMessage(giveplayerid, COLOR_WHITE, string);
					        			CarOffer[giveplayerid] = playerid;
					        			CarID[giveplayerid] = ownvehkey;
					        			CarPrice[giveplayerid] = price;
					        			return 1;
					        		}
									else if(PlayerInfo[giveplayerid][pPcarkey3] == 9999)
							    	{
							            tmp = strtok(cmdtext, idx);
							            if(!strlen(tmp))
							            {
							                SendClientMessage(playerid, COLOR_LIGHTBLUE, ">>{FFFFFF}SUGESTIE: /sellto [IDJucator/PARTEdinNUME] [pret]");
							                return 1;
							            }
							            new price;
							            price = strval(tmp);
							            if(price < 1 || price > 10000000)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Pretul trebuie sa fie intre $1 si $10000000. ");
							                return 1;
							            }
							            if(PlayerInfo[playerid][pLevel] < 5)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa ai minim nivel 5. ");
							                return 1;
							            }
							            if(PlayerInfo[giveplayerid][pLevel] < 3)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Jucatorul nu are nivel 3. ");
							                return 1;
							            }
										GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
										GetPlayerName(playerid, sendername, sizeof(sendername));
							       		format(string, sizeof(string), "* I-ai oferit lui %s vehiculul pentru $%d .", giveplayer, price);
					        			SendClientMessage(playerid, COLOR_WHITE, string);
					        			format(string, sizeof(string), "* Proprietarul vehiculului %s iti ofera vehiculul cu $%d (scrie /accept car) pentru a o cumpara.", sendername, price);
					        			SendClientMessage(giveplayerid, COLOR_WHITE, string);
					        			CarOffer[giveplayerid] = playerid;
					        			CarID[giveplayerid] = ownvehkey;
					        			CarPrice[giveplayerid] = price;
					        			return 1;
					        		}
									else if(PlayerInfo[giveplayerid][pPcarkey4] == 9999)
							    	{
							            tmp = strtok(cmdtext, idx);
							            if(!strlen(tmp))
							            {
							                SendClientMessage(playerid, COLOR_LIGHTBLUE, ">>{FFFFFF}SUGESTIE: /sellto [IDJucator/PARTEdinNUME] [pret]");
							                return 1;
							            }
							            new price;
							            price = strval(tmp);
							            if(price < 1 || price > 10000000)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Pretul trebuie sa fie intre $1 si $10000000. ");
							                return 1;
							            }
							            if(PlayerInfo[playerid][pLevel] < 5)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa ai minim nivel 5. ");
							                return 1;
							            }
							            if(PlayerInfo[giveplayerid][pLevel] < 3)
							            {
							                SendClientMessage(playerid, COLOR_GREY, "  Jucatorul nu are nivel 3. ");
							                return 1;
							            }
										GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
										GetPlayerName(playerid, sendername, sizeof(sendername));
							       		format(string, sizeof(string), "* I-ai oferit lui %s vehiculul pentru $%d .", giveplayer, price);
					        			SendClientMessage(playerid, COLOR_WHITE, string);
					        			format(string, sizeof(string), "* Proprietarul vehiculului %s iti ofera vehiculul cu $%d (scrie /accept car) pentru a o cumpara.", sendername, price);
					        			SendClientMessage(giveplayerid, COLOR_WHITE, string);
					        			CarOffer[giveplayerid] = playerid;
					        			CarID[giveplayerid] = ownvehkey;
					        			CarPrice[giveplayerid] = price;
					        			return 1;
					        		}
							    }
							    else
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   Acesta persoana nu este aproape de tine ! ");
							        return 1;
							    }
							}
					    }
					    else
					    {
					        SendClientMessage(playerid, COLOR_GREY, "  Jucator Offline");
					        return 1;
					    }
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa stai in vehiculul tau pentru al vinde");
			return 1;
		}
	}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:  Da,am facut cateva rectificari,dar nu stiu de ce nu merge.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Arata comanda accept car, acolo e problema

 

 

EDIT: Greseala mea, am crezut ca nu iti trece masina pe numele tau, acum am vazut ca nu merge sa scrii sellcarto

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Problema e ca nu apare nici mesajul acela cu Proprietarul X iti vinde masina...

if(strcmp(x_job,"car",true) == 0)
			{
			    if(CarOffer[playerid] < 999)
			    {
			        if(CarID[playerid] == 0) { return 1; }
			        if(CarID[playerid] != GetPlayerVehicleID(CarOffer[playerid])) { return 1; }
			        if(CarPrice[playerid] == 0 || CarPrice[playerid] > 10000001) { return 1; }

			        if(CarID[playerid] == PlayerInfo[CarOffer[playerid]][pPcarkey]) { }
			        else if(CarID[playerid] == PlayerInfo[CarOffer[playerid]][pPcarkey2]) { }
			        else if(CarID[playerid] == PlayerInfo[CarOffer[playerid]][pPcarkey3]) { }
			        else if(CarID[playerid] == PlayerInfo[CarOffer[playerid]][pPcarkey4]) { }
			        else { SendClientMessage(playerid, COLOR_GREY, "  Oferta nu mai este valabila"); return 1; }

			        if(GetPlayerMoney(playerid) >= CarPrice[playerid])
			        {
						if(IsPlayerConnected(CarOffer[playerid]))
						{
						    if(PlayerInfo[playerid][pPcarkey] == 9999)
							{
								if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[CarOffer[playerid]][pPcarkey];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[CarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[CarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey3] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey4])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[CarOffer[playerid]][pPcarkey4];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey4] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vanzatorul trebuie sa fie in masina !");
									return 1;
								}
							    GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer));
							    GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, sizeof(string), "* Ai cumparat masina pentru $%d de la %s.",CarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s a cumparat masina pentru $%d.",sendername,CarPrice[playerid]);
								SendClientMessage(CarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(CarOffer[playerid]);
						    	TogglePlayerControllable(CarOffer[playerid], 1);
						    	GivePlayerMoney(playerid, - CarPrice[playerid]);
						    	GivePlayerMoney(CarOffer[playerid], CarPrice[playerid]);
							    strmid(CarInfo[CarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							    printf("%s i-a vandut lui %s vehiculul (%d)%s cu suma de %d.", giveplayer, sendername,  CarID[playerid], CarInfo[CarID[playerid]][cDescription], CarPrice[playerid]);
								//DateProp2(playerid);
								//DateProp2(CarOffer[playerid]);
								OnPropUpdate();
								OnPlayerUpdateEx(playerid);
								OnPlayerUpdateEx(CarOffer[playerid]);
							    CarOffer[playerid] = 999;
								CarID[playerid] = 0;
								CarPrice[playerid] = 0;
								GameTextForPlayer(playerid, "~w~Nu uita sa parchezi masina (/park)!", 5000, 3);
								SendClientMessage(playerid, COLOR_GRAD2, "Felicitari pentru achizitie!");
								SendClientMessage(playerid, COLOR_GRAD2, "Scrie /vehiclehelp pentru a vedea comenzile vehiculului!");
								return 1;
							}
							else if(PlayerInfo[playerid][pPcarkey2] == 9999)
							{
								if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[CarOffer[playerid]][pPcarkey];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[CarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[CarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey3] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey4])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[CarOffer[playerid]][pPcarkey4];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey4] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vanzatorul trebuie sa fie in masina !");
									return 1;
								}
							    GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer));
							    GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, sizeof(string), "* Ai cumparat masina pentru $%d de la %s.",CarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s a cumparat masina pentru $%d.",sendername,CarPrice[playerid]);
								SendClientMessage(CarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(CarOffer[playerid]);
						    	TogglePlayerControllable(CarOffer[playerid], 1);
						    	GivePlayerMoney(playerid, - CarPrice[playerid]);
						    	GivePlayerMoney(CarOffer[playerid], CarPrice[playerid]);
							    strmid(CarInfo[CarOffer[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							    printf("%s i-a vandut lui %s vehiculul (%d)%s cu suma de %d.", giveplayer, sendername, CarOffer[playerid], CarInfo[CarID[playerid]][cDescription], CarPrice[playerid]);
								//DateProp2(playerid);
								//DateProp2(CarOffer[playerid]);
								OnPropUpdate();
								OnPlayerUpdateEx(playerid);
								OnPlayerUpdateEx(CarOffer[playerid]);
							    CarOffer[playerid] = 999;
								CarID[playerid] = 0;
								CarPrice[playerid] = 0;
								GameTextForPlayer(playerid, "~w~Nu uita sa parchezi masina (/park)!", 5000, 3);
								SendClientMessage(playerid, COLOR_GRAD2, "Felicitari pentru achizitie!");
								SendClientMessage(playerid, COLOR_GRAD2, "Scrie /vehiclehelp pentru a vedea comenzile vehiculului!");
								return 1;
							}
							else if(PlayerInfo[playerid][pPcarkey3] == 9999)
							{
								if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[CarOffer[playerid]][pPcarkey];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[CarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[CarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey3] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey4])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[CarOffer[playerid]][pPcarkey4];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey4] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vanzatorul trebuie sa fie in masina !");
									return 1;
								}
							    GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer));
							    GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, sizeof(string), "* Ai cumparat masina pentru $%d de la %s.",CarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s a cumparat masina pentru $%d.",sendername,CarPrice[playerid]);
								SendClientMessage(CarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(CarOffer[playerid]);
						    	TogglePlayerControllable(CarOffer[playerid], 1);
						    	GivePlayerMoney(playerid, - CarPrice[playerid]);
						    	GivePlayerMoney(CarOffer[playerid], CarPrice[playerid]);
							    strmid(CarInfo[CarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							    printf("%s i-a vandut lui %s vehiculul (%d)%s cu suma de %d.", giveplayer, sendername, CarID[playerid], CarInfo[CarID[playerid]][cDescription], CarPrice[playerid]);
								//DateProp2(playerid);
								//DateProp2(CarOffer[playerid]);
								OnPropUpdate();
								OnPlayerUpdateEx(playerid);
								OnPlayerUpdateEx(CarOffer[playerid]);
							    CarOffer[playerid] = 999;
								CarID[playerid] = 0;
								CarPrice[playerid] = 0;
								GameTextForPlayer(playerid, "~w~Nu uita sa parchezi masina (/park)!", 5000, 3);
								SendClientMessage(playerid, COLOR_GRAD2, "Felicitari pentru achizitie!");
								SendClientMessage(playerid, COLOR_GRAD2, "Scrie /vehiclehelp pentru a vedea comenzile vehiculului!");
								return 1;
							}
							else if(PlayerInfo[playerid][pPcarkey4] == 9999)
							{
								if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey4] = PlayerInfo[CarOffer[playerid]][pPcarkey];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey4] = PlayerInfo[CarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey4] = PlayerInfo[CarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey3] = 9999;
								}
								else if(GetPlayerVehicleID(CarOffer[playerid]) == PlayerInfo[CarOffer[playerid]][pPcarkey4])
								{
									PlayerInfo[playerid][pPcarkey4] = PlayerInfo[CarOffer[playerid]][pPcarkey4];
						    		PlayerInfo[CarOffer[playerid]][pPcarkey4] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vanzatorul trebuie sa fie in masina !");
									return 1;
								}
							    GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer));
							    GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, sizeof(string), "* Ai cumparat masina pentru $%d de la %s.",CarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s a cumparat masina pentru $%d.",sendername,CarPrice[playerid]);
								SendClientMessage(CarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(CarOffer[playerid]);
						    	TogglePlayerControllable(CarOffer[playerid], 1);
						    	GivePlayerMoney(playerid, - CarPrice[playerid]);
						    	GivePlayerMoney(CarOffer[playerid], CarPrice[playerid]);
							    strmid(CarInfo[CarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							    printf("%s i-a vandut lui %s vehiculul (%d)%s cu suma de %d.", giveplayer, sendername, CarID[playerid], CarInfo[CarID[playerid]][cDescription], CarPrice[playerid]);
								//DateProp2(playerid);
								//DateProp2(CarOffer[playerid]);
								OnPropUpdate();
								OnPlayerUpdateEx(playerid);
								OnPlayerUpdateEx(CarOffer[playerid]);
							    CarOffer[playerid] = 999;
								CarID[playerid] = 0;
								CarPrice[playerid] = 0;
								GameTextForPlayer(playerid, "~w~Nu uita sa parchezi masina (/park)!", 5000, 3);
								SendClientMessage(playerid, COLOR_GRAD2, "Felicitari pentru achizitie!");
								SendClientMessage(playerid, COLOR_GRAD2, "Scrie /vehiclehelp pentru a vedea comenzile vehiculului!");
								return 1;
							}
			        }
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   Nimeni nu iti vinde un vehicul !");
			        return 1;
			    }
			}
			}

 

Link to comment
Share on other sites

  • 0

Ce se intampla cand scrii sellcarto?, prima data scrii /sellcarto si spune sa scrii si idul si suma, iar daca scrii /sellcarto 0  nu apare nimic? verifica si server log poate primesti o eroarea ceva

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
16 hours ago, Bogdan's said:

Nu primesc,exact cum ai spus tu.Nu primesc nici o eroare.

Daca mai ceri ajutor pe privat o sa-ti inchid toate topicurile de la ajutor scripting . Ori rezolvi problema aici , ori pe privat .

 

 

Link to comment
Share on other sites

  • 0
On 8/12/2016 at 10:23 AM, Bogdan's said:

Poti inchide...

 

Eu rezolv problema aici,dar cine ma ajuta daca toti sunt dupa bani?

Ti-am zis sa faci ceva sa vedem ce probleme are si zici ca nu te ajuta nimeni ca suntem dupa bani? Eu iti sugerezi sa faci ce ti se zice in topic ca vrem sa te ajutam dar din cate observ tu nu incerci nimic..

Gh38gEQ.gif

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.