SA-MP Forums Archive
Help me to fix this! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me to fix this! (/showthread.php?tid=330095)



Help me to fix this! - kevinhbk1 - 31.03.2012

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





Re: Help me to fix this! - kevinhbk1 - 31.03.2012

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


Re: Help me to fix this! - kevinhbk1 - 31.03.2012

Someonr help.... Please


Re: Help me to fix this! - kevinhbk1 - 31.03.2012

Problem Fixed Tnx to "Spirit_evil"


Re: Help me to fix this! - captainjohn - 31.03.2012

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.