11.04.2011, 18:49
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == dPickup)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health +25);
DestroyPickup(dPickup);
return 1;
}
if(pickupid == bPickup)
{
GameTextForPlayer(playerid, "~r~CDM ~w~Bank~n~~w~Type ~r~/enter~w~ to go inside", 5000, 5);
return 1;
}
return 1;
}
dPickup gets created under ongamemodeinit.
The problem is bPickup doesn't work unless I delete the if conditional for dPickup, any ideas?