Warning....
#1

PHP код:
warning 219local variable "object" shadows a variable at a preceding level 
PHP код:
    if(killerid != INVALID_PLAYER_ID)
    {
             new 
Float:xFloat:yFloat:z;
             new 
oldmoney GetPlayerMoney(playerid);
             
GetPlayerPos(playeridxyz);
             
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(object2xyz, -1)] = oldmoney;
             }
    } 
Reply
#2

did u define it two times?
Reply
#3

you change the object 1 in 2,
may be
Quote:

new object2 = MONEY_BAG

Reply
#4

pawn Код:
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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)