29.03.2016, 20:00
I resolved, now i have this problem
Error 17165:
Error: 17701
PHP код:
C:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2381) : error 010: invalid function or declaration
C:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2420) : warning 217: loose indentation
C:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2428) : error 010: invalid function or declaration
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17165) : warning 235: public function lacks forward declaration (symbol "S@@_OnPlayerGiveDamage")
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17701) : warning 235: public function lacks forward declaration (symbol "S@@_OnPlayerTakeDamage")
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(Lesson[playerid] == 1 && GetPlayerWeapon(playerid) == L_ARMA)
{
new Float:health;
GetPlayerHealth(damagedid, health);
if(Lessc[damagedid] == 1) return 1;
ClearAnimations(damagedid);
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
SetTimerEx("ColpLess",L_TIMER, 0, "i", damagedid);
Lessc[damagedid] = 1;
TogglePlayerControllable(damagedid, 0);
SetPlayerHealth(damagedid, health+amount);
}
return 1;
}
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
Hud(playerid);
/* COLPITO SUL TORACE */
new Float:armatura;
GetPlayerArmour(playerid, armatura);
if(issuerid != INVALID_PLAYER_ID && bodypart == 3)
{
if(weaponid >= 22 && weaponid <= 35)
{
if(armatura == 0)
{
torace[playerid] = 1;
//ApplyAnimation(playerid,"PED","KO_shot_stom",4.1,0,1,0,1,0);
}}}
/* COLPITO IN TESTA */
/*if(issuerid != INVALID_PLAYER_ID && bodypart == 9)
{
if(weaponid >= 22 && weaponid <= 35)
{
SetPlayerHealth(playerid, 0);
}
if(staffduty[playerid] == 1)
{
SetPlayerHealth(playerid, 999999);
}
}*/
/* BRACCIO DESTRO */
if(issuerid != INVALID_PLAYER_ID && bodypart == 6)
{
if(weaponid >= 22 && weaponid <= 35)
{
bdestro[playerid] = 1;
}}
/* BRACCIO SINISTRO */
if(issuerid != INVALID_PLAYER_ID && bodypart == 5)
{
if(weaponid >= 22 && weaponid <= 35)
{
bsinistro[playerid] = 1;
}}
/* GAMBA DESTRA */
if(issuerid != INVALID_PLAYER_ID && bodypart == 8)
{
if(weaponid >= 22 && weaponid <= 35)
{
gdestra[playerid] = 1;
}}
/* GAMBA SINISTRA */
if(issuerid != INVALID_PLAYER_ID && bodypart == 7)
{
if(weaponid >= 22 && weaponid <= 35)
{
gsinistra[playerid] = 1;
}}
if(issuerid != INVALID_PLAYER_ID && bodypart == 4)
{
if(weaponid >= 22 && weaponid <= 35)
{
inguine[playerid] = 1;
}}
return 1;
}