SA-MP Forums Archive
Autocrack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Autocrack (/showthread.php?tid=361949)



Autocrack - DeeCaay - 22.07.2012

Код:
C:\Users\Phil\Desktop\-\Bureau\PR-RP\gamemodes\ROY-RP.pwn(41471) : error 001: expected token: ";", but found "if"
C:\Users\Phil\Desktop\-\Bureau\PR-RP\gamemodes\ROY-RP.pwn(41476) : error 010: invalid function or declaration
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
   	new Float:health;
    GetPlayerHealth(playerid,health)
    if(health < 20.0)
    {
    ApplyAnimation(playerid,"PED","crckdeth2",4.1,1,1,1,1,1,1);
    }
    }
    return 1;
}
What is the problem?


Re: Autocrack - SnG.Scot_MisCuDI - 22.07.2012

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:health;
    GetPlayerHealth(playerid,health); // forgot the ;
    if(health < 20.0)
    {
    ApplyAnimation(playerid,"PED","crckdeth2",4.1,1,1,1,1,1,1);
    }
    }
    return 1;
}



Re : Re: Autocrack - DeeCaay - 22.07.2012

Quote:
Originally Posted by SnG.Scot_MisCuDI
Посмотреть сообщение
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:health;
    GetPlayerHealth(playerid,health); // forgot the ;
    if(health < 20.0)
    {
    ApplyAnimation(playerid,"PED","crckdeth2",4.1,1,1,1,1,1,1);
    }
    }
    return 1;
}
Thanks