Help me to fix this!
#1

Hi guys, I was creating some pickups...... when i created a health pickup i got a error(Property does not exit), so plz help me to fix it.....


Reply
#2

Quote:

new Pickup;

Quote:

Pickup = CreatePickup(1240,2,2485.3269,-1631.4274,23.3649);

Quote:

if(pickupid == Pickup)
{
SendClientMessage(playerid, COLOR_PINK, "Your Health have been refilled");
SetPlayerHealth(playerid, 100);
}
return 1;
}

Here is the coding i have done
Reply
#3

Someonr help.... Please
Reply
#4

Problem Fixed Tnx to "Spirit_evil"
Reply
#5

Under OnGameModeInit add this

pawn Код:
CreatePickup(1240,2,2485.3269,-1631.4274,23.3649);;  // Health
Then here
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
Add this
pawn Код:
if(pickupid == 0) SetPlayerHealth(playerid, 100.0);
   return 1;
}

Edit: Didn't see your post above.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)