 |
|
Veteran Member
Join Date: Mar 2014
Location: Under the water
|

08-13-2014
, 10:46
Re: Compile Error [HELP]
|
#2
|
Quote:
Originally Posted by Awesome_man
Here the code but giving compile error, and i'm unable to fix it. please someone fix this little code
PHP Code:
#include <amxmodx> #include <fun> #include <colorchat> #include <jctf>
#define PLUGIN "" #define VERSION "1.0" #define AUTHOR ""
const TASK_ID = 6969 const BonusHP = 30
new g_iSync
public plugin_init(){
register_plugin("", "0.2", "")
register_event("DeathMsg", "onDeathMsgEvent", "a") register_event("CurWeapon", "onCurWeaponEvent", "be", "1=1")
g_iSync = CreateHudSyncObj()
new szVersion[6]
get_cvar_string("jctf_version", szVersion, charsmax(szVersion))
if(str_to_float(szVersion) < 1.21) set_fail_state("jCTF is required at least v1.21 !") }
public onDeathMsgEvent() { new id = read_data(1)
new szWeapon[32] read_data(4, szWeapon, charsmax(szWeapon))
if(equal(szWeapon, "knife") && is_user_alive(id)) { new szName[32], szName2[32] get_user_name(id, szName, charsmax(szName)) get_user_name(read_data(2), szName2, charsmax(szName2))
set_hudmessage(255, 0, 0, 0.02, 0.2, 1, 0.1, 6.0, 0.1, 0.1, -1) ShowSyncHudMsg(0, g_iSync, "Player %s Knifed %s HAHA", szName, szName2)
client_cmd(0,"spk misc/laugh") ColorChat(0, GREEN, "^Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s", szName, szName2)
set_user_health(id, get_user_health(id) + 30) jctf_add_adrenaline(id, 40, "no reason" ); remove_task(id + TASK_ID) }
|
simple jctf.inc add in your include folder
and then try to do locally compile
last line you forget to add
expect tokens add this also
}
__________________
Thanks everyone. #miss_you_all
Last edited by indraraj striker; 08-13-2014 at 10:50.
Reason: fixed
|
|
|
|