new healthpickup; public OnFilterScriptInit() { healthpickup = CreatePickup(1242, 23, 2240.7236,2449.3508,10.8203, 1); printf("healthpickup = %d", healthpickup); public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == healthpickup) { GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to go inside", 5000, 5); return 1; } return 1; }
newhealthpickup;
new healthpickup;
new healthpickup;
public OnFilterScriptInit()
{
healthpickup = CreatePickup(1242, 23, 2240.7236,2449.3508,10.8203, 1);
printf("healthpickup = %d", healthpickup);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == healthpickup)
{
GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to go inside", 5000, 5);
}
return 1;
}
pawn Код:
|
This implies you didn't copy and paste the code, but instead rewrote it. That's never a good idea because sometimes the original may be wrong but the rewritten version on the forums is actually correct, leading people to be unable to find the bug at all.
|
This implies you didn't copy and paste the code, but instead rewrote it. That's never a good idea because sometimes the original may be wrong but the rewritten version on the forums is actually correct, leading people to be unable to find the bug at all.
|
new healthpickup; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" blah blah blah LOADED!!!!"); print("--------------------------------------\n"); healthpickup = CreatePickup(1242, 23, 2240.7236,2449.3508,10.8203, 1); printf("healthpickup = %d", healthpickup); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == healthpickup) { GameTextForPlayer(playerid, "~w~Type ~r~/enter~w~ to go inside", 5000, 5); return 1; } return 1; }