[C++]: Get the name of the AMX.
#1

Код:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx) {
	if(SERVER::AddAMX(/* GetAMXName(amx), */ amx) == false) {
		return AMX_ERR_GENERAL;
	}
	return amx_Register(amx, Plugin_Natives, -1);
}

PLUGIN_EXPORT int PLUGIN_CALL AmxUnload(AMX *amx) {
	if(SERVER::RemoveAMX(amx) == false) {
		return AMX_ERR_GENERAL;
	}
	return AMX_ERR_NONE;
}
Is there a way to get the name of the AMX that is being loaded?
Reply


Messages In This Thread
[C++]: Get the name of the AMX. - by SkittlesAreFalling - 10.12.2015, 20:53
Re: [C++]: Get the name of the AMX. - by codectile - 17.12.2015, 09:46

Forum Jump:


Users browsing this thread: 1 Guest(s)