Zm_aim_info

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
nuodas159
Flooderis arba specialistas
Posts: 522
Joined: 2010 Sep 03 15:30
Skype: nuodas159
Location: SunCity

Zm_aim_info

Post by nuodas159 »

Code: Select all

/*****************************************************\===============================|| [ZP] Aim Info Plugin v1.0 ||=============================== ||DESCRIPTION||    When you aim at your friend, a hud message    appears which shows you the Name, HP,     Armor and Ammo Packs of your friend. ||CREDITS||    - AMX MOD X Team ----> For most of the natives    - MeRcyLeZZ ----> For ZP 4.3    - Sn!ff3r ----> For the Actual Aim info Plugin \*****************************************************/#include <amxmodx>#include <zombieplague> #define PLUGIN "Aim Info Plugin"#define VERSION "1.0"#define AUTHOR "@bdul!+Sn!ff3r" new g_status_sync public plugin_init(){    register_plugin(PLUGIN, VERSION, AUTHOR)    register_event("StatusValue", "showStatus", "be", "1=2", "2!0")    register_event("StatusValue", "hideStatus", "be", "1=1", "2=0")    register_dictionary("zp_aim_info.txt");        g_status_sync = CreateHudSyncObj()} public showStatus(id){    if(!is_user_bot(id) && is_user_connected(id))     {        new name[32], pid = read_data(2)            get_user_name(pid, name, 31)        new color1 = 0, color2 = 0            new team1 = zp_get_user_zombie(id), team2 = zp_get_user_zombie(pid)            if (team2 == 1)            color1 = 255        else            color2 = 255                        if (team1 == team2)    // friend        {            set_hudmessage(color1, 50, color2, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)            ShowSyncHudMsg(id, g_status_sync, "%L", LANG_PLAYER, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))        }    }} public hideStatus(id){    ClearSyncHud(id, g_status_sync)}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }*/ 
Kas padetu errorus istaisyti +karma

Code: Select all

L 06/03/2011 - 14:45:52: [AMXX] Displaying debug trace (plugin "zp_aim_info.amxx")L 06/03/2011 - 14:45:52: [AMXX] Run time error 25: parameter error L 06/03/2011 - 14:45:52: [AMXX]    [0] zp_aim_info.sma::showStatus (line 55)

Code: Select all

L 06/03/2011 - 14:44:22: [AMXX] Run time error 25 (plugin "zp_aim_info.amxx") - debug not enabled!L 06/03/2011 - 14:44:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).L 06/03/2011 - 14:45:00: String formatted incorrectly - parameter 10 (total 9)
Image


User avatar
aaarnas
Vyr. diskusijų administratorius
Posts: 3891
Joined: 2010 Aug 31 13:21
Skype: fiarno
Contact:

Re: Zm_aim_info

Post by aaarnas »

Code: Select all

ShowSyncHudMsg(id, g_status_sync, "%L", LANG_PLAYER, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))
--->>>

Code: Select all

ShowSyncHudMsg(id, g_status_sync, "%L", id, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))

Be to parašyk AIM_INFO eilutę iš lang failo.
Palikau CS pasaulį ;/ . Nebepasiekiamas.

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Zm_aim_info

Post by psychical »

aaarnas wrote:

Code: Select all

ShowSyncHudMsg(id, g_status_sync, "%L", LANG_PLAYER, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))
--->>>

Code: Select all

ShowSyncHudMsg(id, g_status_sync, "%L", id, "AIM_INFO", name, get_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))
Be to parašyk AIM_INFO eilutę iš lang failo.
Cia as ne i tema, bet:

Code: Select all

[en]AIM_INFO = %s | HP: %d | Armor: %d | Ammo Packs: %d

User avatar
aaarnas
Vyr. diskusijų administratorius
Posts: 3891
Joined: 2010 Aug 31 13:21
Skype: fiarno
Contact:

Re: Zm_aim_info

Post by aaarnas »

Jeigu toks, tada nėra klaidų.
Palikau CS pasaulį ;/ . Nebepasiekiamas.

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 3 guests