warning 219: local variable "object" shadows a variable at a preceding level
if(killerid != INVALID_PLAYER_ID)
{
new Float:x, Float:y, Float:z;
new oldmoney = GetPlayerMoney(playerid);
GetPlayerPos(playerid, x, y, z);
ResetPlayerMoney(playerid);
//Only drop if the player has atleast $1
if(oldmoney > 2999)
{
new object = MONEY_STACK;
if(oldmoney >= 20000)
{
object = MONEY_BAG;
}
//Create the pickup & return the id
//Set the id to how much money was dropped
playerPickups[CreatePickup(object, 2, x, y, z, -1)] = oldmoney;
}
}
new object2 = MONEY_BAG |
new obje = MONEY_STACK;
if(oldmoney >= 20000)
{
obje = MONEY_BAG;
}
//Create the pickup & return the id
//Set the id to how much money was dropped
playerPickups[CreatePickup(obje, 2, x, y, z, -1)] = oldmoney;