SA-MP Forums Archive
Now it gives me this error! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Now it gives me this error! (/showthread.php?tid=491452)



Now it gives me this error! - UnClear - 30.01.2014

Compile errors:
Quote:

C:\Users\JACOLA03\Desktop\LVRP\gamemodes\lvrp.pwn( 7711) : error 025: function heading differs from prototype

Script line :
Quote:

public OnPlayerShootPlayer(Shooter,Target,Float:HealthLos t,Float:ArmourLost)
{
new string[128];
if(GetPlayerWeapon(Shooter) == 34 && PlayerInfo[Shooter][pScope] && Hitman[Shooter] == Target)
{
SetPlayerHealth(Target, 0);
SetPlayerArmour(Target, 0);
if(Hitman[Shooter] == Target)
{
format(string, sizeof(string), " You have been critically injured by a hitman and lost $%d, the contrat on your head was cleared.", PlayerInfo[Target][pContract]/2);
SendClientMessage(Target, COLOR_YELLOW, string);
format(string, sizeof(string), "HitmanWarn: %s has fulfilled the contract on %s's head and collected $%d.", RPN(Shooter), RPN(Target), PlayerInfo[Target][pContract]/2);
SendHitmanMessage(COLOR_YELLOW, string);
GiveZaiatMoney(Target, -PlayerInfo[Target][pContract]/2);
GiveZaiatMoney(Shooter, PlayerInfo[Target][pContract]/2);
PlayerInfo[Target][pContract] = 0;
format(PlayerInfo[Target][pContract], 32, "");
Hitman[Shooter] = -1;
PlayerInfo[Shooter][pCSuccess] ++;
}
PlayerInfo[Shooter][pScope] --;
}