HELP

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

HELP

Post by artiom555 »

Kodel nekomplitina :>?

Code: Select all

 /* Plugin generated by AMXX-Studio */ #include <amxmodx>#include <amxmisc>#include <zombieplague> #define PLUGIN "[ZP] Transfer Ammo"#define VERSION "1.0"#define AUTHOR "Viva" new g_UserTotalAmmo[33]new g_CvarAllowDonatenew SayText  public plugin_init() {    register_plugin(PLUGIN, VERSION, AUTHOR)        g_CvarAllowDonate = register_cvar("zp_stats_allow_donate", "1")        register_clcmd("say", "handleSay")    register_clcmd("say_team", "handleSay")        register_event("HLTV", "RoundStart", "a", "1=0", "2=0")     SayText = get_user_msgid("SayText") } public RoundStart(){    if (get_pcvar_num(g_CvarAllowDonate))        set_task(2.2, "MsgOnRoundStart")        } public MsgOnRoundStart(){    if(get_pcvar_num(g_CvarAllowDonate))        client_printcolor(0, "!g[ZP] !yGive Ammo Pack say /give")        } public handleSay(id){    new args[64]        read_args(args, charsmax(args))    remove_quotes(args)        new arg1[16]    new arg2[32]        strbreak(args, arg1, charsmax(arg1), arg2, charsmax(arg2))    if (get_pcvar_num(g_CvarAllowDonate) && equal(arg1,"/give", 7))        donate(id, arg2)    } public donate(id, arg[]){    new to[32], count[10]    strbreak(arg, to, 31, count, 9)        if (!to[0] || !count[0])    {        client_printcolor(id, "!g[ZP] !ySay: say /give <Nick> <Ammo Pack>")        return    }    new ammo_sender = zp_get_user_ammo_packs(id)    new ammo    if (equal(count, "all"))        ammo = ammo_sender    else        ammo = str_to_num(count)    if (ammo <= 0)    {        client_printcolor(id, "!g[ZP] !yInvalid command!")        return    }    ammo_sender -= ammo    if (ammo_sender < 0)    {        ammo+=ammo_sender        ammo_sender = 0            }    new reciever = cmd_target(id, to, (CMDTARGET_ALLOW_SELF))    if (!reciever || reciever == id)    {        client_printcolor(id, "!g[ZP] !yPlayer !g%s !ythe server has no players with the same nickname!", to)        return    }        zp_set_user_ammo_packs(reciever, zp_get_user_ammo_packs(reciever) + ammo)    g_UserTotalAmmo[reciever] += ammo    zp_set_user_ammo_packs(id, ammo_sender)    new aName[32], vName[32]        get_user_name(id, aName, 31)    get_user_name(reciever, vName, 31)        set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 6.0)    show_hudmessage(0, "%s give %d ammo for %s!", aName, ammo, vName)    } stock client_printcolor(const id, const input[], any:...){    new count = 1, players[32]    static msg[191]    vformat(msg, 190, input, 3)        replace_all(msg, 190, "!g", "^4") // Green Color    replace_all(msg, 190, "!y", "^1") // Default Color    replace_all(msg, 190, "!t", "^3") // Team Color        if (id) players[0] = id; else get_players(players, count, "ch")     {        for ( new i = 0; i < count; i++ )        {            if ( is_user_connected(players[i]) )            {                message_begin(MSG_ONE_UNRELIABLE, SayText, _, players[i])                write_byte(players[i]);                write_string(msg);                message_end();            }        }    }}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }*/ 

User avatar
MPD
Gana aktyvus vartotojas
Posts: 309
Joined: 2011 Jul 08 07:24
Location: Kaunas

Re: HELP

Post by MPD »

Galėtum parašyti, ką parašo, kai bandai compilinti.
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: HELP

Post by artiom555 »

Tai pabandik pats complite ir pamatisi jei tau nesunku :P

User avatar
MPD
Gana aktyvus vartotojas
Posts: 309
Joined: 2011 Jul 08 07:24
Location: Kaunas

Re: HELP

Post by MPD »

Man compilina be jokių problemų.
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: HELP

Post by artiom555 »

Per koki web tu complitini ?

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: HELP

Post by laimiukas3 »

per web kompiletorius nesukompiliuosi nes jie neturi zombieplague.inc failo
Attachments
zm.amxx
(3.72 KiB) Downloaded 751 times
Image
Image
Image

User avatar
artiom555
Jau po truputį tampa savu
Posts: 112
Joined: 2014 Apr 23 21:55
Skype: artem.sharkovic
Contact:

Re: HELP

Post by artiom555 »

Aš ant pc komplitinu ira include zombieplague.inc ir vis tiek necomplitina , errora kaz koki ismeta.

Image

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: HELP

Post by laimiukas3 »

atsisiusk naujausia dev build http://www.amxmodx.org/snapshots.php turi kompiliuoti nes man juk sukompiliavo
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests