Help me fix this error please
#1

Help me fix this
PHP код:
wcrp\utils.pwn(308) : warning 219local variable "Z" shadows a variable at a preceding level
wcrp
\utils.pwn(663) : warning 219local variable "Z" shadows a variable at a preceding level 
Line:308
PHP код:
public SendAreaMessage(Float:radiFloat:XFloat:YFloat:Zstring[],color)
{
    new 
Float:posxFloat:posyFloat:posz;
    new 
Float:tempposxFloat:tempposyFloat:tempposz;
    foreach(
Player,i)
    {
        
GetPlayerPos(iposxposyposz);
        
tempposx = (-posx);
        
tempposy = (-posy);
        
tempposz = (-posz);
        if (((
tempposx radi/16) && (tempposx > -radi/16)) && ((tempposy radi/16) && (tempposy > -radi/16)) && ((tempposz radi/16) && (tempposz > -radi/16)))
        {
            
SendClientMessage(icolorstring);
        }
        else if (((
tempposx radi/8) && (tempposx > -radi/8)) && ((tempposy radi/8) && (tempposy > -radi/8)) && ((tempposz radi/8) && (tempposz > -radi/8)))
        {
            
SendClientMessage(icolorstring);
        }
        else if (((
tempposx radi/4) && (tempposx > -radi/4)) && ((tempposy radi/4) && (tempposy > -radi/4)) && ((tempposz radi/4) && (tempposz > -radi/4)))
        {
            
SendClientMessage(icolorstring);
        }
        else if (((
tempposx radi/2) && (tempposx > -radi/2)) && ((tempposy radi/2) && (tempposy > -radi/2)) && ((tempposz radi/2) && (tempposz > -radi/2)))
        {
            
SendClientMessage(icolorstring);
        }
        else if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            
SendClientMessage(icolorstring);
        }
    }
    return 
1;

Line 663:
PHP код:
#define DEG_TO_RAD(%1) %1*(3.14159265 / 180)
stock movePlayerBack(playeridFloat:distance) {
    new 
Float:X,Float:Y,Float:ZFloat:A;
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridA);
    
+= 90;
    
DEG_TO_RAD(A);
    
-= floatcos(A) * distance;
    
-= floatsin(A) * distance;
    
SetPlayerPos(playeridXYZ);
    return 
1;

Line 308:
PHP код:
public SendAreaMessage(Float:radiFloat:XFloat:YFloat:Zstring[],color
Line 663:
PHP код:
    new Float:X,Float:Y,Float:ZFloat:A
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)