string shadows a variable at a preceding level
#1

Warning: local variable "IgracTablicki" shadows a variable at a preceding level
Please Help!
Line:
PHP код:
stock LocirajAvtomobilT(IgracTablicki
Code:
PHP код:
stock LocirajAvtomobilT(IgracTablicki)
{
    new 
cm AllMyCars(IgracTablicki);
    if(
cm 0)
    {
        if(
MyVehicle[playerid][MyVehTablicki] == tablickat)
        {
        
clx[playerid] ++;
        if(
clx[playerid] > cm)
        {
            
clx[playerid] = 0;
        }
        new 
Float:VPos[3];
        
GetVehiclePos(MyVehicle[GetMyCarMID(playerid,clx[playerid])][MyVehID], VPos[0],VPos[1],VPos[2]);
        
SetPlayerCheckpoint(playerid,VPos[0],VPos[1],VPos[2],8.0);
        if(
clx[playerid] == 0){DisablePlayerCheckpoint(playerid);}
    }
    else{
SCM(playeridCOLOR_LIGHTRED"{FF4040}>>[GRESKA]:{FFFFFF} Igracot nema avtomobil");}
}

Reply
#2

Change
PHP код:
new cm AllMyCars(IgracTablicki); 
to
PHP код:
new cm;
AllMyCars(IgracTablicki) = cm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)