Shadows Variable at a preceding level
#1

PHP код:
function drop_player_weapons(playeridtype)
{
    new 
FloatPos[3], string[128], gunname[32], sweaponsammoiddresult// LINE 8155
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    for(new 
012i++)
    {
        
GetPlayerWeaponData(playeridisweaponsammo);
        if(
sweapon != 0)
        {
            
result++;
            
idd CheckIDEmpty();
            
DropInfo[idd][ID] = CreatePickup(WeaponObject(sweapon), 23Pos[0]+resultPos[1]+2Pos[2], -1);
            
DropInfo[idd][Type] =  0;
            
DropInfo[idd][Weapon] = sweapon;
            
DropInfo[idd][Ammo] = sammo;
            
GetWeaponName(sweapongunnamesizeof(gunname));
            
format(stringsizeof(string), "{90F037}%s{FFFFFF} (%d)"gunnamesammo);
            
DropInfo[idd][Label] = Create3DTextLabel(string, -1Pos[0]+resultPos[1]+2Pos[2], 10.000);
        }
    }
    if(
activeHeal == && type == 0)
    {
        
result++;
        
idd CheckIDEmpty();
        
DropInfo[idd][ID] = CreatePickup(124023Pos[0]+resultPos[1]+2Pos[2], -1);
        
DropInfo[idd][Type] = 1;
        
DropInfo[idd][Weapon] = 0;
        
DropInfo[idd][Ammo] = 0;
        
DropInfo[idd][Label] = Create3DTextLabel("{DE1212}Medkit (1)", -1Pos[0]+resultPos[1]+2Pos[2], 10.000);
    }
    
ResetPlayerWeapons(playerid);
    return 
1;

Код:
(8155) : warning 219: local variable "Pos" shadows a variable at a preceding level
Reply


Messages In This Thread
Shadows Variable at a preceding level [SOLVED] - by Mkssid - 05.02.2018, 04:39
Re: Shadows Variable at a preceding level - by Sew_Sumi - 05.02.2018, 04:55

Forum Jump:


Users browsing this thread: 1 Guest(s)