Raised This Month: $32 Target: $400
 8% 

how to get players IP?


Post New Thread Reply   
 
Thread Tools Display Modes
DigiSoft
BANNED
Join Date: Feb 2009
Old 01-06-2010 , 20:33   Re: how to get players IP?
Reply With Quote #31

OK my plugin is working GREAT.
I've found workaround for this in mani admin plugin source code.

You should use
Code:
                INetChannelInfo *nci = engine->GetPlayerNetInfo(j);
                if (!nci)
                {
                    continue;
                }
Now it works beautify

THANKS TO ALL.

Last edited by DigiSoft; 01-06-2010 at 21:19.
DigiSoft is offline
Keeper
Senior Member
Join Date: Nov 2006
Old 01-07-2010 , 09:06   Re: how to get players IP?
Reply With Quote #32

I was going to say ... when players come and go, the indexes may be left open. So just getting a total will not be enough, you'd have to test each one, which is what the code above does.
Keeper is offline
Bilge
Junior Member
Join Date: Dec 2009
Old 01-07-2010 , 12:13   Re: how to get players IP?
Reply With Quote #33

Quote:
Originally Posted by DigiSoft View Post
OK my plugin is working GREAT.
I've found workaround for this in mani admin plugin source code.

You should use
Code:
                INetChannelInfo *nci = engine->GetPlayerNetInfo(j);
                if (!nci)
                {
                    continue;
                }
Implying that checking if your pointers are valid is a great "workaround" that only Mani has thought of and not something that everyone who has ever coded in C should always do.
Bilge 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 19:27.


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