Raised This Month: $ Target: $400
 0% 

no


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 08-13-2014 , 10:46   Re: Compile Error [HELP]
Reply With Quote #2

Quote:
Originally Posted by Awesome_man View Post
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"szVersioncharsmax(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(4szWeaponcharsmax(szWeapon))

    if(
equal(szWeapon"knife") && is_user_alive(id))
    {
        new 
szName[32], szName2[32]
        
get_user_name(idszNamecharsmax(szName))
        
get_user_name(read_data(2), szName2charsmax(szName2))

        
set_hudmessage(255000.020.210.16.00.10.1, -1)
        
ShowSyncHudMsg(0g_iSync"Player %s Knifed %s HAHA"szNameszName2)

        
client_cmd(0,"spk misc/laugh")
        
ColorChat(0GREEN"^Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s"szNameszName2)


        
set_user_health(idget_user_health(id) + 30
        
jctf_add_adrenaline(id40"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
}
Attached Files
File Type: inc jctf.inc (3.1 KB, 68 views)
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 08-13-2014 at 10:50. Reason: fixed
indraraj striker is offline
 



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:17.


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