- 0
Problema Compile
-
Similar Content
-
- 2 replies
- 116 views
-
- 3 answers
- 176 views
-
- 11 replies
- 241 views
-
- 2 replies
- 130 views
-
- 2 answers
- 168 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Sammich
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