Jump to content
  • 0

Problema Compile



Problema intalnita (descriere): Folosesc GM-ul WIPE-RPG,si am intalnit o problema la compile
Ero(area / rile) / warning-(ul / urile):

E:Descarcatefilehost_virtualvirtualgamemodesvx-rp.pwn(38156) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
1 Error.
Liniile de cod / sursa / script-ul(obligatoriu):

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
    new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
    new weaponname[24];
    GetPlayerName(playerid, attacker, sizeof (attacker));
    GetPlayerName(damagedid, victim, sizeof (victim));
    foreach(Player, i)
        if(playerVariables[pAdminLevel] >= 1)
            if(DamageLog == playerid)
                new Float: pPos1[3], Float: pPos2[3];
                GetPlayerPos(damagedid, pPos1[0], pPos1[1], pPos1[2]);
                GetPlayerPos(playerid, pPos2[0], pPos2[1], pPos2[2]);
                new Float: Distance;
                Distance = GetDistanceBetweenPoints(pPos1[0], pPos1[1], pPos1[2], pPos2[0], pPos2[1], pPos2[2]);
                GetWeaponName(weaponid, weaponname, sizeof (weaponname));
                format(string, sizeof(string), "%s has made %.0f damage to %s, weapon: %s, Distance: %.0f", attacker, amount, victim, weaponname, Distance);
                SCM(i, COLOR_RED, string);
    return 1;
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.