08.04.2010, 19:14
Hello Guys,
I have got a problem when show the house properties.
I wrote OnPlayerPickupPickup system.
But does not appear at the game.
PICKUP
MY PUBLIC
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]);
Код:
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); } } } }