Raised This Month: $51 Target: $400
 12% 

[Help] Problem Jetlack.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
injustice
Junior Member
Join Date: Feb 2015
Old 03-07-2015 , 19:16   [Help] Problem Jetlack.
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{
    register_concmd("free_jet", "g_iJet", ADMIN_LEVEL_H, "<target>")
}

public g_iJet(id, level, cid)
{
    if(!cmd_access(id, level, cid, 2))
    {
        console_print(id, "[ZM] Access is denied!")
        return 1
    }
        
    new iTarget[32]
    read_argv(1, iTarget, charsmax(iTarget))
    
    new TargetPlayer = cmd_target(id, iTarget, 2)
    
    if(!TargetPlayer)
    {
        console_print(id, "[ZM] Cannot find that particular name!")
        return 1
    }
    
    if(!is_user_alive(TargetPlayer))
    {
        console_print(id, "[ZM] This command is disabled for dead player!")
        return 1
    }
    
    if(read_argc() != 2)
        return 1
        
    new TargetName[32]
    get_user_name(TargetPlayer, TargetName, charsmax(TargetName))
    
    set_user_jet(TargetPlayer, 1 )
    set_user_fuel(TargetPlayer, 250.0 )
    
    console_print(0, "[ZM] %s has been given free Jet!", TargetName)
    console_print(id, "[ZM] Now, you can fly away!")
    
    return 1
}lo


Problem

Last edited by injustice; 03-07-2015 at 19:21.
injustice is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 03-07-2015 , 22:24   Re: [Help] Problem Jetlack.
Reply With Quote #2

It show very clear in the image that's there's no such thing is set_user_jet and set_user_fuel, so obviously it can't compile.
__________________
Currently offline for study.
RateX is offline
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 03-08-2015 , 08:14   Re: [Help] Problem Jetlack.
Reply With Quote #3

And why are you trying to compile it in .txt extension?

Change it to .sma
Obada is offline
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:23.


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