SA-MP Forums Archive
Warning 225 - 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: Warning 225 (/showthread.php?tid=450970)



Warning 225 - NerdCompany - 15.07.2013

Hi all, when I compile the pawno gives me this error:
Код HTML:
..\gamemodes\NC2013.pwn(3409) : warning 225: unreachable code
3409 is this line:
PHP код:
if(strcmp(cmdtext,"/beach"true) == 0
This is the code of the command:
PHP код:
if(strcmp(cmdtext,"/beach"true) == 0)
{
    
SetPlayerInterior(playerid,0);
    {if(
State!=PLAYER_STATE_DRIVER)
        {
SetPlayerPos(playerid,337.0234,-1803.2863,5);}
        else if(
IsPlayerInVehicle(playeridcartype) == 1)
        {
SetVehiclePos(cartype,337.0234,-1803.2863,5);
            
SetVehicleZAngle(cartype,91.5348);}
        else
        {
SetPlayerPos(playerid,337.0234,-1803.2863,5);}
        
SendClientMessage(playerid0xFFFF00AA,"Sei stato teletrasportato a {030AF3}/beach");}
    return 
1;} 
I have already searched in the forum but nothing helped me.
Please, help!



Re: Warning 225 - Bicentric - 15.07.2013

http://codegenerators.pl/indent < Use this to indent your code a lot easier


Re: Warning 225 - NerdCompany - 15.07.2013

Ok, done