03.02.2014, 14:58
pawn Код:
C:\Users\hacker\Desktop\lscnr script\gamemodes\spree.pwn(120) : warning 219: local variable "Name" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
here
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID)
{
new
Kills,
string[128];
Kills = GetPVarInt(killerid, "KillingSpree") + 1;//+1 add murder to the murderer
SetPVarInt(playerid,"KillingSpree",0);//Kills reset to 0 for the victim
SetPVarInt(killerid,"KillingSpree",Kills);
if(Kills == 5)
format(string,sizeof string,"<< {FF0000}%s(%d) KillingSpree!! with {ffffff}%d {FF0000}Kills",Name(killerid),killerid,Kills);
else if(Kills == 10)
format(string,sizeof string,"<< {FF0000}%s(%d) MonsterKill!! with {ffffff}%d {FF0000}Kills",Name(killerid),killerid,Kills);
else if(Kills == 15)
format(string,sizeof string,"<< Wow! {FF0000}%s(%d) Unstoppable!! with {ffffff}%d {FF0000}Kills",Name(killerid),killerid,Kills);
else if(Kills == 20)
format(string,sizeof string,"<< Amazing! {FF0000}%s(%d) UltraKill!! withn {ffffff}%d {FF0000}Kills",Name(killerid),killerid,Kills);
else return 1;