18.04.2015, 04:14
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);
}
./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);
}