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

Hooking FN_PutInServer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-11-2013 , 14:09   Hooking FN_PutInServer
Reply With Quote #1

I uncommented this line from moduleconfig.h
PHP Code:
#define FN_ClientPutInServer            ClientPutInServer 
PHP Code:
#ifndef __MAIN_H__
#define __MAIN_H__

#include "amxxmodule.h"
#include "CString.h"

void FN_ClientPutInServeredict_t *id )
{
    
SERVER_PRINT"testtttttttttttttttttttttttttttttttttttttttttt" );

But the message isn't showing on console.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2013 , 14:18   Re: Hooking FN_PutInServer
Reply With Quote #2

Try "printf" , just to test.
__________________
Arkshine is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-11-2013 , 15:02   Re: Hooking FN_PutInServer
Reply With Quote #3

Not working:/
Spoiler
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2013 , 15:15   Re: Hooking FN_PutInServer
Reply With Quote #4

Your function is not the define but "ClientPutInServer".
__________________
Arkshine is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-11-2013 , 15:32   Re: Hooking FN_PutInServer
Reply With Quote #5

So my function should be like this?
PHP Code:
void ClientPutInServeredict_t *id )
{
    
SERVER_PRINT"testtttttttttttttttttttttttttttttttttttttttttt" );

I used FM_ClientPutInServer because I saw it on a minitutorial made some time ago by Raymon (AntiBots).
https://forums.alliedmods.net/showthread.php?t=110144

Also not working with ClientPutInServer.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2013 , 15:37   Re: Hooking FN_PutInServer
Reply With Quote #6

Well, read too fastly, you can use both. Anyway, you do something wrong, are you sure you connect to your server and your are "put in the server" ? Is USE_METAMOD well uncommented ?
__________________

Last edited by Arkshine; 01-11-2013 at 15:42.
Arkshine is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-11-2013 , 16:00   Re: Hooking FN_PutInServer
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
Well, read too fastly, you can use both. Anyway, you do something wrong, are you sure you connect to your server and your are "put in the server" ? Is USE_METAMOD well uncommented ?
I'm sure.

I thought that I didn't need metamod...

Now I uncommented that line but I have some errors compiling...
Code:
1>------ Operación Generar iniciada: proyecto: firstmodule_amxx, configuración: Release Win32 ------
1>     Creando biblioteca C:\Users\Nelson\Documents\AMXX C++ Proyects\firstmodule v2\firstmodule_amxx\Release\firstmodule_amxx.lib y objeto C:\Users\Nelson\Documents\AMXX C++ Proyects\firstmodule v2\firstmodule_amxx\Release\firstmodule_amxx.exp
1>amxxmodule.obj : error LNK2001: símbolo externo "void __cdecl ClientPutInServer(struct edict_s *)" (?ClientPutInServer@@YAXPAUedict_s@@@Z) sin resolver
1>C:\Users\Nelson\Documents\AMXX C++ Proyects\firstmodule v2\firstmodule_amxx\Release\firstmodule_amxx.dll : fatal error LNK1120: 1 externos sin resolver
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
PS: How can I change the language of vc++ to english? I didn't found how... Just so you can read better...
__________________

Last edited by Neeeeeeeeeel.-; 01-11-2013 at 16:03.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2013 , 16:05   Re: Hooking FN_PutInServer
Reply With Quote #8

Show your whole moduleconfig.h
__________________
Arkshine is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-11-2013 , 16:13   Re: Hooking FN_PutInServer
Reply With Quote #9

Here is it.
Attached Files
File Type: zip moduleconfig.zip (5.6 KB, 57 views)
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2013 , 16:53   Re: Hooking FN_PutInServer
Reply With Quote #10

It seems ok. If it says it doesn't find the symbol, it would mean your code is not correct. What is your actual code ? Show the full code too.
__________________
Arkshine 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 20:55.


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