Raised This Month: $32 Target: $400
 8% 

Help with plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 07-07-2016 , 06:24   Help with plugin
Reply With Quote #1

What do they mean by "new-style declarations"?
Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpvwb1D6.sp(26) : error 147: new-style declarations are required

1 Error.

#pragma semicolon 1
#pragma newdecls required
#include <sourcemod>
#include <sdkhooks>

public Plugin myinfo =
{
name = "Pre-Gun Mettle Dead Ringer",
author = "Nursik",
description = "Makes dead ringer giga times more useful",
version = "1.0",
url = "www.teamfortress.com"
};

public void OnClientPostAdminCheck(int client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}

public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3])
{
if(!(1 <= attacker <= MaxClients))
return Plugin_Continue;
if(!(1 <= victim <= MaxClients))
return Plugin_Continue;
new weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
if (GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex") == 59)
{
damage *= 0.10;
return Plugin_Changed;
}
return Plugin_Continue;
}
Nursik is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-07-2016 , 06:35   Re: Help with plugin
Reply With Quote #2

This is not SourceMod section.
siriusmd99 is offline
Old 07-07-2016, 09:48
Nursik
This message has been deleted by Nursik.
Nursik
Senior Member
Join Date: Jul 2016
Location: In TF2
Old 07-07-2016 , 11:35   Re: Help with plugin
Reply With Quote #3

Quote:
Originally Posted by siriusmd99 View Post
This is not SourceMod section.
Oh sorry, can i remove this thread?
Nursik is offline
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 07-08-2016 , 22:24   Re: Help with plugin
Reply With Quote #4

HELP Me: GO Post This error in Board : SourceMod
HELP2: You Want Get Help Give Me sourcemod.inc And sdkhooks.inc
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode