unreachable code
#1

i have a error pawn. Help me. Thank
./includes/vn.pwn(98560) : warning 225: unreachable code
---------------------------------------------------------------------
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 ) )
{
SetPlayerHealth(playerid, 0.0);
new stringa[MAX_PLAYER_NAME+40];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "[ ! ]:[%s] He was killed by a shot to the head", name);
SendClientMessageToAll(0xFFFF00FF,stringa);
}
return 1;
if(GetPVarInt(playerid, "commitSuicide") == 1) //line 98560
{
SetPVarInt(playerid, "commitSuicide", 0);
}
Reply


Messages In This Thread
unreachable code - by hoangtn219 - 18.04.2015, 04:14
Re: unreachable code - by ATGOggy - 18.04.2015, 05:35

Forum Jump:


Users browsing this thread: 1 Guest(s)