SA-MP Forums Archive
[HELP] OnPlayerPickupPickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] OnPlayerPickupPickup (/showthread.php?tid=140353)



[HELP] OnPlayerPickupPickup - MahmutBey - 08.04.2010

Hello Guys,

I have got a problem when show the house properties.

I wrote OnPlayerPickupPickup system.

But does not appear at the game.


PICKUP
Код:
EvPickup = AddStaticPickup(1273, 23, EvBilgisi[idx][eGirisX], EvBilgisi[idx][eGirisY], EvBilgisi[idx][eGirisZ]);
MY PUBLIC
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	for(new i = 0; i < sizeof(EvBilgisi); i++)
	{
	  new string[256];

		if(pickupid == EvPickup)
		{
			if(EvBilgisi[i][eSatilik] == 0)
			{
				if(EvBilgisi[i][eKiralama] == 0)
				{
					format(string, sizeof(string), "~r~Ev Sahibi: ~w~%s",EvBilgisi[i][eSahibi]);
					GameTextForPlayer(playerid, string, 5000, 3);
				}
				if(EvBilgisi[i][eKiralama] == 1)
				{
					format(string, sizeof(string), "~r~Ev Sahibi: ~w~%s~n~~r~Kira Bedeli: ~w~%dTL",EvBilgisi[i][eSahibi], EvBilgisi[i][eKira]);
					GameTextForPlayer(playerid, string, 5000, 3);
				}
			}
			if(EvBilgisi[i][eSatilik] == 1)
			{
				format(string, sizeof(string), "~r~Bu Ev Satilik~n~~w~%s~~n~~Fiyat: ~w~%dTL~n~~r~Seviye: ~w~%dTL",EvBilgisi[i][eAciklama], EvBilgisi[i][eFiyat], EvBilgisi[i][eSeviye]);
				GameTextForPlayer(playerid, string, 5000, 3);
			}
		}
  }
}



Re: [HELP] OnPlayerPickupPickup - Thrarod - 08.04.2010

You didn't wrote that if player is picking a house pickup I think

TR: Hangi pickupta bunun зalışacağını yazmamışsın, bi silah pickupına gelsede цyle olurdu ondan script oto gidiyo


Re: [HELP] OnPlayerPickupPickup - dice7 - 08.04.2010

You don't need the loop


Re: [HELP] OnPlayerPickupPickup - MahmutBey - 09.04.2010

Quote:
Originally Posted by Thrarod
You didn't wrote that if player is picking a house pickup I think

TR: Hangi pickupta bunun зalэюacaрэnэ yazmamэюsэn, bi silah pickupэna gelsede цyle olurdu ondan script oto gidiyo
I've already defined a pickup while loading the house.

TR: Zaten, evleri yьklerken bir pickup tanэmladэm.