Raised This Month: $ Target: $400
 0% 

ZP ERORS (help)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kjm
Member
Join Date: Jun 2011
Location: Odessa
Old 06-27-2011 , 03:02   ZP ERORS (help)
Reply With Quote #1

I on the server have some errors, I don't know with what they are connected

1 error in zombie_plague
Quote:
L 06/26/2011 - 19:03:17: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")
L 06/26/2011 - 19:03:17: [AMXX] Run time error 4: index out of bounds
L 06/26/2011 - 19:03:17: [AMXX] [0] zombie_plague40.sma::native_get_user_ammo_pac ks (line 9083)
2 error in zp_survattack_reward
Quote:
L 06/26/2011 - 19:03:17: Unhandled dynamic native error
L 06/26/2011 - 19:03:17: [AMXX] Displaying debug trace (plugin "zp_survattack_reward.amxx")
L 06/26/2011 - 19:03:17: [AMXX] Run time error 10: native error (native "zp_get_user_ammo_packs")
kjm is offline
Send a message via Skype™ to kjm
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 06-27-2011 , 10:58   Re: ZP ERORS (help)
Reply With Quote #2

1. did you edit something in original code ?
2. did you enable all required modules ?

Check it...
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 06-27-2011 , 11:09   Re: ZP ERORS (help)
Reply With Quote #3

Is this an error or what?

L 06/26/2011 - 19:03:17: [AMXX] [0] zombie_plague40.sma::native_get_user_ammo_pac ks (line 9083)

And what ZP 4.3 version are you using. The latest is ZP 4.3 Fix4. Line 9083
is a "}" in Fix4, the end of command_survivor(id, player).

And please post in the correct sub-forum next time, thank you.
Excalibur.007 is offline
kjm
Member
Join Date: Jun 2011
Location: Odessa
Old 06-27-2011 , 18:51   Re: ZP ERORS (help)
Reply With Quote #4

i use standart zp 4.3 don't fix

I haven't understood that I need to change?

yes i enable all modules

Quote:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

new g_attack[33];
new g_plugin_on;
new g_rewardammo;
new g_attacksneed;

public plugin_init()
{
register_plugin("[ZP] Survivor Attack Reward","1.0","=)");

RegisterHam(Ham_TakeDamage, "player", "survdamage");

g_plugin_on = register_cvar("zp_survattacksreward_on","1");
g_rewardammo = register_cvar("zp_survattackreward","1");
g_attacksneed = register_cvar("zp_survattackreward_attacksnee d","3");
}

public survdamage(jertva, orujie, killer, uron)
{
if(get_pcvar_num(g_plugin_on) == 0)
{
}else{
new money = zp_get_user_ammo_packs(killer) + get_pcvar_num(g_rewardammo);
if(zp_get_user_survivor(jertva))
{

if(g_attack[killer] == get_pcvar_num(g_attacksneed))
{
zp_set_user_ammo_packs(killer, money)
g_attack[killer] = 0
}else{
g_attack[killer] = g_attack[killer] + 1
}

}
}
}
Quote:
// Native: zp_get_user_ammo_packs
public native_get_user_ammo_packs(id)
{
return g_ammopacks[id];
}
Quote:
; * Переименуйте этот файл в disabled-zplague.ini чтобы выключить ZP плагины
; * Переименуйте обратно в plugins-zplague.ini чтобы включить ZP плагины
; * Закомментируйте плагин чтобы отключить его
; * Раскомментируйте плагин чтобы включить его
; * Поставьте перед именем плагина debug чтобы включить плагин в режиме отладки

; Главный плагин
zombie_plague40.amxx debug
;zm_vip.amxx
;zp_web_stats.amxx
zp_sub_bank.amxx

; Стандартные классы зомби
zp_zclasses40.amxx
;zp_class_climb.amxx
;zp_zclass_smoker.amxx

; VIP плагины
zm_vip_extra_unlimited_clip.amxx
zm_vip_extra_buy_survnem.amxx

; Extra items
zp_extra_human_armor.amxx
zp_pack_grenades.amxx
zp_extra_playeraura.amxx
zp_extra_flamexm1014.amxx
;zp_shield_force.amxx
zp_extra_regeneration.amxx
zp_extra_strip.amxx

; Addons
zp_frags_pbar_zp.amxx
zp_frags_pbar_zpa.amxx
zp_hh.amxx
zp_player_name.amxx
zp_survattack_reward.amxx debug
zp_nemesis_hp.amxx
zp_addon_classes_in_chat.amxx
zp_antiblock.amxx
zp_score.amxx
zp_server_addon_countdown.amxx debug
zp_addon_grenade_status.amxx
zp_nofalldamage.amxx
;zp_plague_50_50.amxx
;zp_lighting_vote.amxx
zp_winround_ammo.amxx
zpnm_manage_ampks.amxx
kjm is offline
Send a message via Skype™ to kjm
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 06-27-2011 , 21:59   Re: ZP ERORS (help)
Reply With Quote #5

post those Sma here (in a zip if possible).
XINLEI is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 06-28-2011 , 06:53   Re: ZP ERORS (help)
Reply With Quote #6

Try downloading ZP 4.3 Fix4 if it doesn't work. Error occurs commonly when server admins starts editing files.

and

PHP Code:
zp_frags_pbar_zp.amxx
zp_frags_pbar_zpa
.amxx 
You only need to use zp_frags_pbar_zp.amxx and not zp_frags_pbar_zpa.amxx since you are using standard ZP 4.3
Excalibur.007 is offline
kjm
Member
Join Date: Jun 2011
Location: Odessa
Old 06-28-2011 , 09:17   Re: ZP ERORS (help)
Reply With Quote #7

Quote:
Originally Posted by Excalibur.007 View Post
Try downloading ZP 4.3 Fix4 if it doesn't work. Error occurs commonly when server admins starts editing files.

and

PHP Code:
zp_frags_pbar_zp.amxx
zp_frags_pbar_zpa
.amxx 
You only need to use zp_frags_pbar_zp.amxx and not zp_frags_pbar_zpa.amxx since you are using standard ZP 4.3
These errors were before I have established this plug-in
Means I will try to put fix the version

i need to delete zpa.amxx?
kjm is offline
Send a message via Skype™ to kjm
kjm
Member
Join Date: Jun 2011
Location: Odessa
Old 06-28-2011 , 09:24   Re: ZP ERORS (help)
Reply With Quote #8

I try fix4, errors remained

L 06/28/2011 - 16:162: [AMXX] [0] zombie_plague40.sma::native_get_user_ammo_pac ks (line 9335)

L 06/28/2011 - 16:162: [AMXX] [0] zp_survattack_reward.sma::survdamage (line 26)

and this
L 06/28/2011 - 16:16:44: [AMXX] [0] zp_server_addon_countdown.sma::zombie_countdo wn (line 42)
kjm is offline
Send a message via Skype™ to kjm
Old 06-28-2011, 09:36
kjm
This message has been deleted by kjm.
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-28-2011 , 12:13   Re: ZP ERORS (help)
Reply With Quote #9

i think your problem is native_get_user_ammo_pac ks because you have space between pac and ks
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
kjm
Member
Join Date: Jun 2011
Location: Odessa
Old 06-28-2011 , 12:38   Re: ZP ERORS (help)
Reply With Quote #10

Quote:
Originally Posted by Dolph_Ziggler View Post
i think your problem is native_get_user_ammo_pac ks because you have space between pac and ks
its log!
its not in .sma file
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 711 views - 334.8 KB)
kjm is offline
Send a message via Skype™ to kjm
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 06:58.


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