28.05.2009, 18:51
I'm sorry for the double post but I'm still running into an issue with items.
... 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?
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; } |
Can someone help?