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


Messages In This Thread
Warning.... - by lizter008 - 29.04.2014, 07:59
Re: Warning.... - by superrobot48 - 29.04.2014, 08:20
Re: Warning.... - by VinPure - 29.04.2014, 08:23
Re: Warning.... - by Brandon_More - 29.04.2014, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)