08.02.2009, 03:57
i made 3 money pickups and instead of making 3 different if statements i decided to use the or (||) function but it made it so everything that i pickup even if its a health pickup, it it makes it a money pickup
heres the code:
anyone know whats wrong?
heres the code:
Код:
if(pickupid == moneypickup1 || moneypickup2 || moneypickup3) { GivePlayerMoney(playerid,20000); GameTextForPlayer(playerid,"Found $20000!",3000,5); }