29.05.2009, 11:54
That's not what I meant really...
This is what I have :
and these are the (callbacks?) :
I don't really know what's wrong..
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); |
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); } |