1. sayfa (Toplam 1 sayfa)

Plugin yüklerken hata

Gönderilme zamanı: Cmt Ara 12, 2020 2:05 pm
gönderen Xau

Kod: Tümünü seç

/home/araclar/compiler/include/amxmod.inc(141) : error 021: symbol already defined: "is_user_authorized"
/home/araclar/compiler/include/amxmod.inc(145) : error 021: symbol already defined: "get_user_authid"
/home/araclar/compiler/include/amxmod.inc(146) : error 010: invalid function or declaration
/home/araclar/compiler/include/amxmod.inc(148) : error 010: invalid function or declaration
/home/araclar/compiler/include/amxmod.inc(151) : error 010: invalid function or declaration
/home/araclar/compiler/include/VexdUM.inc(24) : error 021: symbol already defined: "radius_damage"
/home/araclar/compiler/include/VexdUM.inc(30) : error 021: symbol already defined: "DispatchKeyValue"
/home/araclar/compiler/include/VexdUM.inc(34) : error 021: symbol already defined: "trace_line"
hs_yavasolum.sma(58) : warning 233: symbol "client_disconnec
hs_yavasolum.sma

Plugin yüklerken hata

Gönderilme zamanı: Cmt Ara 12, 2020 10:05 pm
gönderen Xau
Yokmu yardım edecek ?

Plugin yüklerken hata

Gönderilme zamanı: Cmt Ara 12, 2020 10:23 pm
gönderen bilalgecer47
Xau yazdı: Cmt Ara 12, 2020 10:05 pm Yokmu yardım edecek ?
Eklenti değişik kutuphanelerle yazılmıs derleyemıyoruz.

Plugin yüklerken hata

Gönderilme zamanı: Cmt Ara 12, 2020 10:32 pm
gönderen Aconyonn
eklenti,

Kod: Tümünü seç

#include <amxmodx>
#include <reapi>

new bool:g_bActive
new Float:g_flRate

new g_bSlomo
#define SetUserSlomo(%1)   g_bSlomo |= 1<<(%1 & 31)
#define ClearUserSlomo(%1) g_bSlomo &= ~(1<<(%1 & 31))
#define HasUserSlomo(%1)   g_bSlomo &  1<<(%1 & 31)

new g_iMaxPlayers
new g_pCvarSlowMotion, g_pCvarSlowMotionRate

public plugin_init() {
	register_plugin("HeadShot Slow Motion", "0.2", "KRoT@L")
	register_event("ResetHUD", "event_ResetHUD", "be")
	register_event("DeathMsg", "event_DeathMsg", "a", "3=1")
	register_event("Spectator", "event_Spectator", "a")
	g_pCvarSlowMotion = register_cvar("hs_slowmo", "1")
	g_pCvarSlowMotionRate = register_cvar("hs_slowmo_rate", "0.4")
	g_iMaxPlayers = get_maxplayers()
}

public client_putinserver(id) {
	ClearUserSlomo(id)
}

public client_disconnected(id) {
	ClearUserSlomo(id)
}

public event_ResetHUD(id) {
	ClearUserSlomo(id)
}

public event_DeathMsg() {
	new id = read_data(2)
	
	g_bActive = (get_pcvar_num(g_pCvarSlowMotion) > 0) ? true : false
	
	if(g_bActive) {
		g_flRate = get_pcvar_float(g_pCvarSlowMotionRate)
		SetUserSlomo(id)
	}
}

public event_Spectator() {
	ClearUserSlomo(read_data(1))
}

public server_frame() {
	if(g_bActive && g_bSlomo != 0) {
		if(0.0 < g_flRate < 1.0) {
			static id		
			for(id = 1; id <= g_iMaxPlayers; id++) {
				if(HasUserSlomo(id)) {
					set_entvar(id,var_framerate,g_flRate);
				}
			}
		}
	}
}

Plugin yüklerken hata

Gönderilme zamanı: Cmt Ara 12, 2020 10:50 pm
gönderen Xau
Aconyonn yazdı: Cmt Ara 12, 2020 10:32 pm eklenti,

Kod: Tümünü seç

#include <amxmodx>
#include <reapi>

new bool:g_bActive
new Float:g_flRate

new g_bSlomo
#define SetUserSlomo(%1)   g_bSlomo |= 1<<(%1 & 31)
#define ClearUserSlomo(%1) g_bSlomo &= ~(1<<(%1 & 31))
#define HasUserSlomo(%1)   g_bSlomo &  1<<(%1 & 31)

new g_iMaxPlayers
new g_pCvarSlowMotion, g_pCvarSlowMotionRate

public plugin_init() {
	register_plugin("HeadShot Slow Motion", "0.2", "KRoT@L")
	register_event("ResetHUD", "event_ResetHUD", "be")
	register_event("DeathMsg", "event_DeathMsg", "a", "3=1")
	register_event("Spectator", "event_Spectator", "a")
	g_pCvarSlowMotion = register_cvar("hs_slowmo", "1")
	g_pCvarSlowMotionRate = register_cvar("hs_slowmo_rate", "0.4")
	g_iMaxPlayers = get_maxplayers()
}

public client_putinserver(id) {
	ClearUserSlomo(id)
}

public client_disconnected(id) {
	ClearUserSlomo(id)
}

public event_ResetHUD(id) {
	ClearUserSlomo(id)
}

public event_DeathMsg() {
	new id = read_data(2)
	
	g_bActive = (get_pcvar_num(g_pCvarSlowMotion) > 0) ? true : false
	
	if(g_bActive) {
		g_flRate = get_pcvar_float(g_pCvarSlowMotionRate)
		SetUserSlomo(id)
	}
}

public event_Spectator() {
	ClearUserSlomo(read_data(1))
}

public server_frame() {
	if(g_bActive && g_bSlomo != 0) {
		if(0.0 < g_flRate < 1.0) {
			static id		
			for(id = 1; id <= g_iMaxPlayers; id++) {
				if(HasUserSlomo(id)) {
					set_entvar(id,var_framerate,g_flRate);
				}
			}
		}
	}
}
Teşekkür ederim senin verdiğin istediğim gibi çalışıyor. Konu çözülmüştür.