public OnPlayerDeath(playerid, killerid, reason)
{
if(DM[playerid] == true)
if(PlayerInfo[playerid][pVip] == 1)
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 50.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 25.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInfo[playerid][pVip] >= 1)
{
new Float:health;
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 50.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
new Float:health;
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 25.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInfo[playerid][pVip] >= 1)
{
new Float:health;
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 50.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
new Float:health;
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 25.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
return 1;
}
forget return value
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn(163) : warning 219: local variable "health" shadows a variable at a preceding level C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn(170) : warning 219: local variable "health" shadows a variable at a preceding level C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn(528) : warning 203: symbol is never used: "health"
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInfo[playerid][pVip] >= 1)
{
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 50.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 25.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
return 1;
}
|
Ballu, no warnings or errors, i test this script tomorrow, thanks
![]() |