Now it gives me this error!
#1

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] --;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)