Jump to content
  • 0

Problema /rentboat


Gabb04

Question

Ma fratilor deci am si eu o problema , aia de pa sa-mp.com n-au fost in stare sa ma ajute. Deci is 2 solutii : ori is tufe , ori nu s-au uitat.

Deci am facut si eu un biz Rentboat de curand cu /rentboat dialog, iar cand vrei sa inchiriezi trebuie sa te duci pe intrarea bizului sa scrii /rentboat.

Ce vreau sa fac eu si nu-mi iese : Atunci cand o barca este inchiriata de un player , iar alt player vine sa inchirieze aceeasi barca , sa-i scrie : "Someone already rents this boat !"

Uitati codul meu.

if(listitem == 0)
	        {
					if(SBizzInfo[16][sbProducts] == 0)
					{
						GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
						return 1;
					}
					if(PlayerInfo[playerid][pPbiskey] == 12)
					{
						GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
						TogglePlayerControllable(playerid, 1);
						return 1;
					}
					if (GetPlayerMoney(playerid) <  35000)
					{
						SendClientMessage(playerid, COLOR_GRAD2, "   You dont have that much cash !");
						return 1;
					}
					if(HireCar[playerid] != 299)
					{
						gCarLock[HireCar[playerid]] = 0;
						UnLockCar(HireCar[playerid]);
					}
					for(new i=0; i<MAX_PLAYERS; i++) 					
                                                                     {

   						if(HireCar[i] == HireCar[playerid]) - aici e mama ei de problema , nush ce sa-i mai fac !!!!!!

			    		{
       						SendClientMessage(playerid, COLOR_GREY, "    Someone already rents this yacht !");
			        		return 1;
			    		}
					}
					GivePlayerMoney(playerid,-35000);
					PutPlayerInVehicle(playerid, 228, 0);
					SBizzInfo[16][sbTill] += 35000;
					ExtortionSBiz(16, 35000);
					SBizzInfo[16][sbProducts]--;
					HireCar[playerid] = GetPlayerVehicleID(playerid);
					OnPropUpdate();
					GameTextForPlayer(playerid, "We hope you enjoy this yacht", 5000, 3);
			}

Am incercat si cu GetPlayerVehicleID dar degeaba , el cand da /rentboat nu se afla in vehicul , deci nu-si are rostu functia getplayervehicleid

Daca am postat gresit imi cer mii de scuze !

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.