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

Help / Support HELP!.. problems with server


Post New Thread Reply   
 
Thread Tools Display Modes
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-08-2015 , 07:08   Re: HELP!.. problems with server
Reply With Quote #11

Stop bumping a 2000 year old threads, thanks.
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-08-2015 , 13:18   Re: HELP!.. problems with server
Reply With Quote #12

just mind your bussines
Depresie is offline
alecsoviki
Junior Member
Join Date: May 2012
Location: Germany
Old 10-09-2015 , 21:58   Re: HELP!.. problems with server
Reply With Quote #13

Quote:
Originally Posted by SkumTomteN View Post
Stop bumping a 2000 year old threads, thanks.
It's unresolved topic, where is the problem? Not speech without reason, next time, you can try to help! G.n.

Quote:
Originally Posted by Depresie View Post
in plugins-zp.ini replace
Code:
zp50_hud_info.amxx
with
Code:
zp50_hud_info.amxx debug
and post here the errors from the logs

Code:
L 10/09/2015 - 09:07:33: Start of error session.
L 10/09/2015 - 09:07:33: Info (map "zm_foda") (file "addons/amxmodx/logs/error_20151009.log")
L 10/09/2015 - 09:07:33: [ZP] Invalid human class id (-1)
L 10/09/2015 - 09:07:33: [AMXX] Displaying debug trace (plugin "zp50_hud_info.amxx", version "5.0.8")
L 10/09/2015 - 09:07:33: [AMXX] Run time error 10: native error (native "zp_class_human_get_name")
L 10/09/2015 - 09:07:33: [AMXX]    [0] zp50_hud_info.sma::ShowHUD (line 151)
L 10/09/2015 - 09:07:34: [ZP] Invalid human class id (-1)
L 10/09/2015 - 09:07:34: [AMXX] Displaying debug trace (plugin "zp50_hud_info.amxx", version "5.0.8")
L 10/09/2015 - 09:07:34: [AMXX] Run time error 10: native error (native "zp_class_human_get_name")
L 10/09/2015 - 09:07:34: [AMXX]    [0] zp50_hud_info.sma::ShowHUD (line 151)
L 10/09/2015 - 09:07:35: [ZP] Invalid human class id (-1)
L 10/09/2015 - 09:07:35: [AMXX] Displaying debug trace (plugin "zp50_hud_info.amxx", version "5.0.8")
L 10/09/2015 - 09:07:35: [AMXX] Run time error 10: native error (native "zp_class_human_get_name")
L 10/09/2015 - 09:07:35: [AMXX]    [0] zp50_hud_info.sma::ShowHUD (line 151)
Ah.. it's 5.0.8.. But, help please.

Last edited by alecsoviki; 10-09-2015 at 22:02.
alecsoviki is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-10-2015 , 00:45   Re: HELP!.. problems with server
Reply With Quote #14

i never encountered this error on zp 5.0.8, could you please post the source code here? (.sma)

Last edited by Depresie; 10-10-2015 at 00:46.
Depresie is offline
alecsoviki
Junior Member
Join Date: May 2012
Location: Germany
Old 10-13-2015 , 12:39   Re: HELP!.. problems with server
Reply With Quote #15

Quote:
Originally Posted by Depresie View Post
i never encountered this error on zp 5.0.8, could you please post the source code here? (.sma)
I don't have one, but when you find one, i can put it on my server. By original zp mode, don't give this sma.
alecsoviki is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-15-2015 , 09:01   Re: HELP!.. problems with server
Reply With Quote #16

so how am i supposed to fix it if i dont have it?
Depresie is offline
alecsoviki
Junior Member
Join Date: May 2012
Location: Germany
Old 10-19-2015 , 06:00   Re: HELP!.. problems with server
Reply With Quote #17

Quote:
Originally Posted by Depresie View Post
so how am i supposed to fix it if i dont have it?

Code:
L 10/19/2015 - 11:15:52: [ZP] Invalid human class id (-1)
L 10/19/2015 - 11:15:52: [AMXX] Displaying debug trace (plugin "zp50_hud_info.amxx", version "5.0.8")
L 10/19/2015 - 11:15:52: [AMXX] Run time error 10: native error (native "zp_class_human_get_name")
L 10/19/2015 - 11:15:52: [AMXX]    [0] zp50_hud_info.sma::ShowHUD (line 151)
Sma: http://www.megafileupload.com/hVfC/zp50_hud_info.sma
alecsoviki is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-19-2015 , 06:45   Re: HELP!.. problems with server
Reply With Quote #18

@Alec just for ur information, alliedmodders already has a feature of posting certain types of file
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-19-2015 , 09:28   Re: HELP!.. problems with server
Reply With Quote #19

not working, just post the code here with php tags ["php"] code ["/php"] , ignore these "
Depresie is offline
alecsoviki
Junior Member
Join Date: May 2012
Location: Germany
Old 10-19-2015 , 11:36   Re: HELP!.. problems with server
Reply With Quote #20

Quote:
Originally Posted by Depresie View Post
not working, just post the code here with php tags ["php"] code ["/php"] , ignore these "
PHP Code:
/*================================================================================
    
    ----------------------------
    -*- [ZP] HUD Information -*-
    ----------------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <zp50_class_human>
#include <zp50_class_zombie>
#define LIBRARY_NEMESIS "zp50_class_nemesis"
#include <zp50_class_nemesis>
#define LIBRARY_ASSASSIN "zp50_class_assassin"
#include <zp50_class_assassin>
#define LIBRARY_SURVIVOR "zp50_class_survivor"
#include <zp50_class_survivor>
#define LIBRARY_SNIPER "zp50_class_sniper"
#include <zp50_class_sniper>
#define LIBRARY_AMMOPACKS "zp50_ammopacks"
#include <zp50_ammopacks>

const Float:HUD_SPECT_X 0.6
const Float:HUD_SPECT_Y 0.8
const Float:HUD_STATS_X 0.02
const Float:HUD_STATS_Y 0.9

const HUD_STATS_ZOMBIE_R 200
const HUD_STATS_ZOMBIE_G 250
const HUD_STATS_ZOMBIE_B 0

const HUD_STATS_HUMAN_R 0
const HUD_STATS_HUMAN_G 200
const HUD_STATS_HUMAN_B 250

const HUD_STATS_SPEC_R 255
const HUD_STATS_SPEC_G 255
const HUD_STATS_SPEC_B 255

#define TASK_SHOWHUD 100
#define ID_SHOWHUD (taskid - TASK_SHOWHUD)

const PEV_SPEC_TARGET pev_iuser2

new g_MsgSync

public plugin_init()
{
    
register_plugin("[ZP] HUD Information"ZP_VERSION_STRING"ZP Dev Team")
    
    
g_MsgSync CreateHudSyncObj()
}

public 
plugin_natives()
{
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}
public 
module_filter(const module[])
{
    if (
equal(moduleLIBRARY_NEMESIS) || equal(moduleLIBRARY_ASSASSIN) || equal(moduleLIBRARY_SURVIVOR) || equal(moduleLIBRARY_SNIPER) || equal(moduleLIBRARY_AMMOPACKS))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}
public 
native_filter(const name[], indextrap)
{
    if (!
trap)
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}

public 
client_putinserver(id)
{
    if (!
is_user_bot(id))
    {
        
// Set the custom HUD display task
        
set_task(1.0"ShowHUD"id+TASK_SHOWHUD__"b")
    }
}

public 
client_disconnect(id)
{
    
remove_task(id+TASK_SHOWHUD)
}

// Show HUD Task
public ShowHUD(taskid)
{
    new 
player ID_SHOWHUD
    
    
// Player dead?
    
if (!is_user_alive(player))
    {
        
// Get spectating target
        
player pev(playerPEV_SPEC_TARGET)
        
        
// Target not alive
        
if (!is_user_alive(player))
            return;
    }
    
    
// Format classname
    
static class_name[32], transkey[64]
    new 
redgreenblue
    
    
if (zp_core_is_zombie(player)) // zombies
    
{
        
red HUD_STATS_ZOMBIE_R
        green 
HUD_STATS_ZOMBIE_G
        blue 
HUD_STATS_ZOMBIE_B
        
        
// Nemesis Class loaded?
        
if (LibraryExists(LIBRARY_NEMESISLibType_Library) && zp_class_nemesis_get(player))
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_NEMESIS")
            
        
// Assassin Class loaded?
        
else if (LibraryExists(LIBRARY_ASSASSINLibType_Library) && zp_class_assassin_get(player))
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_ASSASSIN")
        else
        {
            
zp_class_zombie_get_name(zp_class_zombie_get_current(player), class_namecharsmax(class_name))
            
            
// ML support for class name
            
formatex(transkeycharsmax(transkey), "ZOMBIENAME %s"class_name)
            if (
GetLangTransKey(transkey) != TransKey_Badformatex(class_namecharsmax(class_name), "%L"ID_SHOWHUDtranskey)
        }
    }
    else 
// humans
    
{
        
red HUD_STATS_HUMAN_R
        green 
HUD_STATS_HUMAN_G
        blue 
HUD_STATS_HUMAN_B
        
        
// Survivor Class loaded?
        
if (LibraryExists(LIBRARY_SURVIVORLibType_Library) && zp_class_survivor_get(player))
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_SURVIVOR")

        
// Sniper Class loaded?
        
else if (LibraryExists(LIBRARY_SNIPERLibType_Library) && zp_class_sniper_get(player))
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_SNIPER")
        else
        {
            
zp_class_human_get_name(zp_class_human_get_current(player), class_namecharsmax(class_name) )
            
            
// ML support for class name
            
formatex(transkeycharsmax(transkey), "HUMANNAME %s"class_name)
            if (
GetLangTransKey(transkey) != TransKey_Badformatex(class_namecharsmax(class_name), "%L"ID_SHOWHUDtranskey)
        }
    }
    
    
// Spectating someone else?
    
if (player != ID_SHOWHUD)
    {
        new 
player_name[32]
        
get_user_name(playerplayer_namecharsmax(player_name))
        
        
// Show name, health, class, and money
        
set_hudmessage(HUD_STATS_SPEC_RHUD_STATS_SPEC_GHUD_STATS_SPEC_BHUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s^nHP: %d - %L %s - %L %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(player))
        else
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s^nHP: %d - %L %s - %L $ %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"MONEY1"cs_get_user_money(player))
    }
    else
    {
        
// Show health, class
        
set_hudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"HP: %d - %L %s - %L %d"get_user_health(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(ID_SHOWHUD))
        else
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"HP: %d - %L %s"get_user_health(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_name)
    }


Last edited by alecsoviki; 10-19-2015 at 11:36.
alecsoviki 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 15:05.


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