- 0
Problema Compile
-
Similar Content
-
Problema turf
By Soryn.,
- 2 answers
- 209 views
-
- 1 reply
- 167 views
-
Problema
By ImJustSlim,
- 3 answers
- 279 views
-
- 2 replies
- 152 views
-
- 1 answer
- 297 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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