Script error. Need help!
#1

Hello guys. I'll be very happy if you help with sorting out this error:
Warning 225: unreachable code. (The line is colored in red)
Here is the script:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(GetPVarInt(playerid, "RegistrationStep") >= 5)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, " You cannot do this right now !");
		return 1;
    }

    if(PlayerInfo[playerid][pBenchPresses] != 0)
	{
	    SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot use this while bench pressing.");
		return 1;
	}

	if(PlayerInfo2[UsingSpawnBar][playerid] > 0)
	{
	    SendClientMessage(playerid, COLOR_LIGHTRED, " You cannot do this right now !");
        return 1;
	}
 {
 if(!strcmp(cmdtext, "/go", true))
 {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, -2275.8000488281, 2348.8000488281, 3.7999999523163))
        {
            MoveObject(BSSDGate, -2275.8000488281, 2348.8000488281, 0.3999999523163, 0.0, 0.0, 56, 0.0);
            return 1;
        }
 }
     else if(strcmp(cmdtext, "/close", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, -2275.8000488281, 2348.8000488281, 3.7999999523163))
        {
            MoveObject(BSSDGate, -2275.8000488281, 2348.8000488281, 3.7999999523163, 0.0, 0.0, 56, 100.0);
            return 1;
        }
    }
    return 0;
    }

	new string[200];
	new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new playername[MAX_PLAYER_NAME];
	new name[MAX_PLAYER_NAME];
	new cmd[128];
	new tmp[128];
	new giveplayerid, idx;
	new idcar = GetPlayerVehicleID(playerid);
	cmd = strtok(cmdtext, idx);
Reply


Messages In This Thread
Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:08
Re: Script error. Need help! - by Avi57 - 10.07.2012, 13:15
Re: Script error. Need help! - by Torus - 10.07.2012, 13:16
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:25
Re: Script error. Need help! - by Torus - 10.07.2012, 13:29
Re: Script error. Need help! - by clarencecuzz - 10.07.2012, 13:35
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:44
Re: Script error. Need help! - by clarencecuzz - 10.07.2012, 13:47
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:54
Re: Script error. Need help! - by Avi57 - 10.07.2012, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)