Need help in my headshot system project
#1

Hello Guys!
Im New in SA-MP Community and i just learnt scripting, so i decided to make my own headshot Filterscript,
But there are some bugs in it
Who ever will fix this bug will be in credits of this Filterscript!


Error:
Quote:

C:\Users\Abdullah420\Desktop\Headshot.pwn(30) : error 017: undefined symbol "message"
C:\Users\Abdullah420\Desktop\Headshot.pwn(30) : error 017: undefined symbol "message"
C:\Users\Abdullah420\Desktop\Headshot.pwn(30) : error 029: invalid expression, assumed zero
C:\Users\Abdullah420\Desktop\Headshot.pwn(30) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Link to the script:
Code:
Quote:

#include <a_samp>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(IsPlayerConnected(issuerid))
{
if(weaponid == 33 || weaponid == 34 || weaponid == 33 || weaponid == 34)
{
if(bodypart == 9)
{
SetPlayerHealth(playerid, 0);
GameTextForPlayer(issuerid,"~r~Headshot",2000,3);
PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid,"~r~Headshot",2000,3);
PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
format(message, sizeof(message), "{FF7700}%s has been killed in a Headshot by %s {FF7700}", playerName, otherID);
SendClientMessageToAll(COLOR_ORANGE, message);
}
}
}
}
return 1;
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)