Problem mit Headshot Script

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • error 025: function heading differs from prototype
    error 030: compound statement not closed at the end of file (started at line 66709)



    public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
    {
    if(issuerid == INVALID_PLAYER_ID) return 1;
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    if(weaponid == 34 && bodypart == 9) //Headshot System
    {
    GameTextForPlayer(playerid,!"~r~~h~~h~] Boom Headshot ]",5000,5);
    GameTextForPlayer(issuerid,!"~g~~h~~h~] Boom Headshot ]",5000,5);
    SetPlayerHealth(playerid, 0.0);
    return 1;
    }


  • public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
    {
    if(issuerid == INVALID_PLAYER_ID) return 1;
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    if(weaponid == 34 && bodypart == 9) //Headshot System
    {
    GameTextForPlayer(playerid,!"~r~~h~~h~] Boom Headshot ]",5000,5);
    GameTextForPlayer(issuerid,!"~g~~h~~h~] Boom Headshot ]",5000,5);
    SetPlayerHealth(playerid, 0.0);
    return 1;
    }//diese Klammer hat gefehlt
    }

  • public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){ if(issuerid == INVALID_PLAYER_ID) return 1; PlayerPlaySound(issuerid,17802,0.0,0.0,0.0); if(weaponid == 34 && bodypart == 9) //Headshot System { GameTextForPlayer(playerid,!"~r~~h~~h~] Boom Headshot ]",5000,5); GameTextForPlayer(issuerid,!"~g~~h~~h~] Boom Headshot ]",5000,5); SetPlayerHealth(playerid, 0.0); return 1; }//diese Klammer hat gefehlt}

    Danke <3