Help with pickupid's
#4

I'm sorry for the double post but I'm still running into an issue with items.

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);
return 1;
}
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);
return 1;
}

... Which it repeats to 35. Now when I pickup mabye 2 or 3 of them, it makes all my other pickups (Houses, businesses) into moneybags too.

Can someone help?
Reply


Messages In This Thread
Help with pickupid's - by Snyper - 27.05.2009, 22:08
Re: Help with pickupid's - by GammerZ - 27.05.2009, 23:25
Re: Help with pickupid's - by Snyper - 27.05.2009, 23:53
Re: Help with pickupid's - by Snyper - 28.05.2009, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)