Pickup id
#4

That's not what I meant really...

This is what I have :

Quote:

P1 = CreateStreamPickup(1550,3,2194.1262,-2542.4609,21.4924,50);
P2 = CreateStreamPickup(1550,3,304.8517,-1479.0131,24.5938,50);

and these are the (callbacks?) :

Quote:

if(pickupid == P1)
{
new string[128];
Moneybag[playerid] += 1;
GameTextForPlayer(playerid, "You have found a~n~~r~Money Bag~w~ worth ~g~100$!", 5000, 5);
format(string, sizeof(string), "[INFO:] You have found %d/35 Money Bags. Keep searching!", Moneybag[playerid]);
SendClientMessage(playerid, YELLOW, string);
GivePlayerCash(playerid, 100);
}
else if(pickupid == P2)
{
new string[128];
Moneybag[playerid] += 1;
GameTextForPlayer(playerid, "You have found a~n~~r~Money Bag~w~ worth ~g~100$!", 5000, 5);
format(string, sizeof(string), "[INFO:] You have found %d/35 Money Bags. Keep searching!", Moneybag[playerid]);
SendClientMessage(playerid, YELLOW, string);
GivePlayerCash(playerid, 100);
}

I don't really know what's wrong..

Reply


Messages In This Thread
Pickup id - by Snyper - 29.05.2009, 05:00
Re: Pickup id - by mannu - 29.05.2009, 06:53
Re: Pickup id - by Castle - 29.05.2009, 10:22
Re: Pickup id - by Snyper - 29.05.2009, 11:54
Re: Pickup id - by Weirdosport - 29.05.2009, 11:55
Re: Pickup id - by Snyper - 29.05.2009, 11:58
Re: Pickup id - by dice7 - 29.05.2009, 13:43
Re: Pickup id - by Snyper - 29.05.2009, 14:06
Re: Pickup id - by Gamer007 - 29.05.2009, 14:10
Re: Pickup id - by Snyper - 30.05.2009, 00:33

Forum Jump:


Users browsing this thread: 1 Guest(s)