BCL.pwn(3241) : warning 217: loose indentation BCL.pwn(3243) : warning 217: loose indentation BCL.pwn(3251) : warning 217: loose indentation BCL.pwn(3252) : warning 217: loose indentation BCL.pwn(3255) : warning 217: loose indentation BCL.pwn(3258) : warning 217: loose indentation BCL.pwn(3261) : warning 217: loose indentation
3243 - GetPlayerArmour(damagedid, ARMOR); 3251 - SetPlayerArmour(damagedid, 0.0); 3252 - SetPlayerHealth(damagedid, HEALTH); 3255 - ARMOR = ARMOR - amount; 3258 - if(ARMOR < 1) 3261 - SetPlayerHealth(damagedid, HEALTH);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/comando", true))
{
return 1;
}
if(!strcmp(cmdtext, "/comando2", true))
{
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/comando", true))
{
return 1;
}
if(!strcmp(cmdtext, "/comando2", true))
{
return 1;
}
return 0;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) { if(GetPlayerTeam(playerid) != GetPlayerTeam(damagedid)) { if(damagedid != INVALID_PLAYER_ID) { new Float:HEALTH; new Float:ARMOR; new Float:DAMAGE; GetPlayerArmour(damagedid, ARMOR); GetPlayerHealth(damagedid, HEALTH); if(ARMOR > 0.5) { if(amount > ARMOR) { DAMAGE = amount - ARMOR; HEALTH = HEALTH - DAMAGE; SetPlayerArmour(damagedid, 0.0); SetPlayerHealth(damagedid, HEALTH); return 1; } ARMOR = ARMOR - amount; SetPlayerArmour(damagedid, ARMOR); } if(ARMOR < 1) { HEALTH = HEALTH - amount; SetPlayerHealth(damagedid, HEALTH); } } } return 1; }
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetPlayerTeam(playerid) != GetPlayerTeam(damagedid))
{
if(damagedid != INVALID_PLAYER_ID)
{
new Float:HEALTH, ARMOR, DAMAGE;
GetPlayerArmour(damagedid, ARMOR);
GetPlayerHealth(damagedid, HEALTH);
if(ARMOR > 0.5)
{
if(amount > ARMOR)
{
DAMAGE = amount - ARMOR;
HEALTH = HEALTH - DAMAGE;
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, HEALTH);
return 1;
}
ARMOR = ARMOR - amount;
SetPlayerArmour(damagedid, ARMOR);
}
if(ARMOR < 1)
{
HEALTH = HEALTH - amount;
SetPlayerHealth(damagedid, HEALTH);
}
}
}
return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetPlayerTeam(playerid) != GetPlayerTeam(damagedid))
{
if(damagedid != INVALID_PLAYER_ID)
{
new Float:HEALTH;
new Float:ARMOR;
new Float:DAMAGE;
GetPlayerArmour(damagedid, ARMOR);
GetPlayerHealth(damagedid, HEALTH);
if(ARMOR > 0.5)
{
if(amount > ARMOR)
{
DAMAGE = amount - ARMOR;
HEALTH = HEALTH - DAMAGE;
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, HEALTH);
return 1;
}
ARMOR = ARMOR - amount;
SetPlayerArmour(damagedid, ARMOR);
}
if(ARMOR < 1)
{
HEALTH = HEALTH - amount;
SetPlayerHealth(damagedid, HEALTH);
}
}
}
return 1;
}
Vocк pode usar o pragma ou identar o cmd com a ferramenta de identaзгo http://www.jotaquery.com.br/ferramentas/identar/
й so colocar o codigo lб e clicar para identar depois e so colocar no gamemode |
#pragma tabsize 0
warnings de LOOSE IDENTATION significa que o seu texto estб mal organizado, se puder organize, se tiver preguiзa apenas cole o seguinte codigo no topo do gm (Abaixo das includes)
Код:
#pragma tabsize 0 ![]() |