Hi, @DjReactive
this is good system, i am using it it is very nice, but it have a bug
my server always crash because of this plugin, could you help me to deal with it?
this is error log
Quote:
L 12/30/2014 - 20:41:51: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 12/30/2014 - 20:41:51: [AMXX] [0] zp_level_system_xp3.2.sma::Level (line 107)
L 12/30/2014 - 20:41:51: [ZP] Invalid Player (24)
L 12/30/2014 - 20:41:51: [AMXX] Displaying debug trace (plugin "zp_level_system_xp3.2.amxx")
L 12/30/2014 - 20:41:51: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
|
[PHP Code]public Level(id)
{
if( !zp_get_user_zombie(id) && is_user_alive(id) ) //line 107
{
g_trime[id] = false;
new n = 1;
while( n < g_level[id] )
{
h_health[id] = n * get_pcvar_num(g_h_health);
h_speed[id] = n * get_pcvar_num(g_h_speed);
h_damage[id] = n * get_pcvar_num(g_h_damage);
z_damage[id] = n * get_pcvar_num(g_z_damage);
n = n + 1
}
new Float:speed[32];
speed[id] = fm_get_user_maxspeed(id) + h_speed[id];
fm_set_user_health( id, get_user_health(id) + h_health[id] )
set_pev(id, pev_maxspeed, speed[id] )
emit_sound(id, CHAN_STREAM, sound_health, 1.0, ATTN_NORM, 0, PITCH_HIGH )
}
}[/PHP Code]
one more thing, if i stop the plugin or reinstall server, i need to backup players level information, where should i find the file :)