[HELP] OnPlayerPickupPickup
#1

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);
			}
		}
  }
}
Reply
#2

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
Reply
#3

You don't need the loop
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: