Hello There, Guest! Login or Register


All the help I need
#9
Well, maybe I have some noob questions at first, but it doesn't matter to me, I want to learn scripting fast. oks, here is my problem:
The pickups won't show up, I know the wiki so I looked at it, I can't solve the problem, Idk if i need to use AddStaticPickup AND CreatePickup.
here is my script:

Code:
#include <a_samp>

#define GivePlayerHealth
#define pickup
#define pickupid
#define GivePlayerArmor
#define GivePlayerWeapon
#define OnPlayerPickupPickup
#if defined playerid
new Health
new Armor

Public OnGameModeInit()
{


AddStaticPickup(1240, 2, 2000.7, 1568.0, 15.3);  //Health

AddStaticPickup(1240, 2, 2099.9, 2186.5, 13.4); //Health

AddStaticPickup(1242, 2, 2100, 2184,.3, 13.4);  //Armor

AddStaticPickup(350, 2, 2100.8, 2168.8, 13.4); //Sawnoff

AddStaticPickup(372, 2, 2100.9, 2170.9, 10.8); //TEC-9

return 1;
}

public OnPlayerPickupPickup(playerid, pickupid);
{

if(pickupid == Health) {
GivePlayerHealth(playerid, 1240, 100);

if(pickupid == Health) {
GivePlayerHealth(playerid, 1240, 100);

if(pickupid == Armor) {
GivePlayerArmor(playerid, 1242, 100);

if(pickupid == Sawnoff) {
GivePlayerWeapon(playerid, 350, 100);

if(pickupid == TEC-9) {
GivePlayerWeapon(playerid, 372, 1000);

return 1;
}

#endif

Can you help me?
Reply


Messages In This Thread
All the help I need - by speedruntrainer - 05-05-2009, 10:41 PM
Re: A very important question. - by Shark - 05-05-2009, 11:21 PM
Re: A very important question. - by FarePak - 05-06-2009, 03:02 AM
Re: A very important question. - by Matthias - 05-06-2009, 05:51 AM
Re: A very important question. - by TeEjAy - 05-06-2009, 06:44 AM
Re: A very important question. - by Matthias - 05-06-2009, 02:23 PM
Re: All the help I need - by speedruntrainer - 05-07-2009, 04:16 PM
Re: All the help I need - by FarePak - 05-07-2009, 04:52 PM
Re: All the help I need - by Matthias - 05-07-2009, 05:28 PM
Re: All the help I need - by FarePak - 05-07-2009, 05:44 PM
Re: All the help I need - by Mark - 05-07-2009, 07:31 PM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:32 AM
Re: All the help I need - by FarePak - 05-08-2009, 06:54 AM
Re: All the help I need - by Mark - 05-08-2009, 11:04 AM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:14 PM
Re: All the help I need - by FarePak - 05-08-2009, 01:43 PM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:54 PM
Re: All the help I need - by FarePak - 05-08-2009, 02:23 PM