SA-MP Forums Archive
Unreachable code and Error i dont have this line /? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unreachable code and Error i dont have this line /? (/showthread.php?tid=465794)



Unreachable code and Error i dont have this line /? - Bulgaria - 24.09.2013

PHP код:
if(GetPVarInt(playerid"ScreenShow") == 0)
    {
        
SetPlayerInterior(playerid,0);
        
SetTimerEx("ShowTD",250,0,"i",playerid);
        return 
1;
    }
return 
0;

This is first ......

This is second

OKEY WTF is that i dont have line 1375.......


Re: Unreachable code and Error i dont have this line /? - Luis- - 24.09.2013

Remove the return 1; bit and change the return 0; to a return 1;


Re: Unreachable code and Error i dont have this line /? - JeaSon - 24.09.2013

what its saying ?

its in line 530


show us the line 530
Texture and step
shows us


Re: Unreachable code and Error i dont have this line /? - Bulgaria - 24.09.2013




Re: Unreachable code and Error i dont have this line /? - DanishHaq - 24.09.2013

Remove the return 1; above if(getpvarint..


Re: Unreachable code and Error i dont have this line /? - Bulgaria - 24.09.2013




Re: Unreachable code and Error i dont have this line /? - MAFIAWARS - 24.09.2013

Bulgaria? Do like that.

You didn't close the brace of that "}"
You should do like that,
pawn Код:
if(GetPVarInt(playerid, "SreenShow") ==0)
{
           {
             Set.....
             return 0;
            }
}



Re: Unreachable code and Error i dont have this line /? - Bulgaria - 24.09.2013


That's great so now what


Re: Unreachable code and Error i dont have this line /? - Konstantinos - 24.09.2013

Now you miss brackets. Do Ctrl + Z to undo.

and it should be:
pawn Код:
public OnPlayerSpawn(playerid)
{
    // code
    if(GetPVarInt(playerid, "ScreenShow") == 0)
    {
        SetPlayerInterior(playerid,0);
        SetTimerEx("ShowTD",250,0,"i",playerid);
    }
    return 1;
}
For the warning 'symbol is never used', use it somewhere or remove it. Don't worry about it though.


Re: Unreachable code and Error i dont have this line /? - Aleksabre - 24.09.2013

Something went wrong on your brackets, Ctrl + Z to set your positions back in pawno, then try at the end of the script
pawn Код:
}
                               }
     return 1;
 }
   return 0;
}