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

[Any] Paranoia IP Tracker


Post New Thread Reply   
 
Thread Tools Display Modes
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-03-2012 , 11:10   Re: [Any] Paranoia IP Tracker
Reply With Quote #11

PiwneBractwo:
Change it?

monomizer:
Using SQLite isn't going to work.
__________________
DarthNinja is offline
PiwneBractwo
New Member
Join Date: Oct 2011
Old 03-04-2012 , 07:09   Re: [Any] Paranoia IP Tracker
Reply With Quote #12

Quote:
Originally Posted by DarthNinja View Post
PiwneBractwo:
Change it?
I don't know how to change it. DarthNinja you can change this? Or, write how I can do it.

Sorry for my english
Regards
PiwneBractwo is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-04-2012 , 10:06   Re: [Any] Paranoia IP Tracker
Reply With Quote #13

Quote:
Originally Posted by PiwneBractwo View Post
I don't know how to change it. DarthNinja you can change this? Or, write how I can do it.

Sorry for my english
Regards
I don't know what you mean by "change it".
What do you want to change it to?
__________________
DarthNinja is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 03-04-2012 , 10:47   Re: [Any] Paranoia IP Tracker
Reply With Quote #14

Installed....sounds sweet
MaloModo is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-04-2012 , 13:13   Re: [Any] Paranoia IP Tracker
Reply With Quote #15

That update query pushing a new ip into the list is nice. I didn't think of that
__________________
Peace-Maker is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-04-2012 , 17:40   Re: [Any] Paranoia IP Tracker
Reply With Quote #16

Quote:
Originally Posted by Peace-Maker View Post
That update query pushing a new ip into the list is nice. I didn't think of that
Yeah, I should probably check the new IP against all the 10 stored IPs, not just the first one though.

__________________

Last edited by DarthNinja; 03-04-2012 at 17:40.
DarthNinja is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-05-2012 , 00:51   Re: [Any] Paranoia IP Tracker
Reply With Quote #17

Quote:
Originally Posted by PiwneBractwo View Post
Nice plugin

You can change the date in Paranoia_IPTrackerLogs / ConnectTime ?
In this table I see date for example 1330774025.


Sorry for my english
Regards
That's a UNIX timestamp. Convert it here -> http://www.unixtimestamp.com

Paste the number into the Timestamp box and hit Convert.

Code:
TIME STAMP: 1330774025

DATE (M/D/Y @ h:m:s): 03 / 03 / 12 @ 5:27:05am EST
__________________
Dr. McKay is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-05-2012 , 10:22   Re: [Any] Paranoia IP Tracker
Reply With Quote #18

Unix time stamp is the number of seconds since Jan 01 1970

In case anyone was wondering - like I was
__________________
View my Plugins | Donate
TnTSCS is offline
togie6
Junior Member
Join Date: Apr 2011
Old 04-01-2012 , 01:46   Re: [Any] Paranoia IP Tracker
Reply With Quote #19

I am having trouble adding the required line to configs/database.cfg to make this plugin work.
Could you please paste it here D=
Ive added a entry for paranoiaip but the plugin still fails to load

Last edited by togie6; 04-01-2012 at 01:47.
togie6 is offline
GameRover
New Member
Join Date: Jan 2012
Old 04-07-2012 , 12:38   MySQL Error for "INSERT INTO..."
Reply With Quote #20

I tried "sm_paranoia_ip_verbose 1;" in this plugin and it work fine for log at "paranoia_iptrackerlogs". But this plugin cant work for "paranoia_iptracker" because this msg from my MySQL(v5.5.22):
Code:
[ParanoiaIPTracker.smx] SQL Error: Field 'IP1' doesn't have a default value
I looked at this plugin's script and see that "IP1"~"IP10" defined as "NOT NULL" in creating table...
How did you setup the database or table so get this SQL script "INSERT INTO..." work?

P.s. Sorry first for my bad English and bad SQL.



Plus:

Because my MySQL don't do "UPDATE" for "NOT NULL" and when "IP1" is "NULL" (i have no idea why can't "WHERE `IP1` != '%s'" be satisfied with "IP1 := NULL".).
So I modified part of plugin's script @[SQL_CreateTables()]:
Code:
//...
    len += Format(query[len], sizeof(query)-len, "  `Name` varchar(128) COLLATE utf8_unicode_ci NOT NULL,");
    len += Format(query[len], sizeof(query)-len, "  `LastConnected` int(12) NOT NULL,");
    len += Format(query[len], sizeof(query)-len, "  `IP1` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP2` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP3` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP4` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP5` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP6` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP7` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP8` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP9` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  `IP10` varchar(64) COLLATE utf8_unicode_ci DEFAULT '0.0.0.0',");
    len += Format(query[len], sizeof(query)-len, "  PRIMARY KEY (`id`),");
    len += Format(query[len], sizeof(query)-len, "  UNIQUE KEY `SteamID` (`SteamID`)");
//...
And now this plugin work fine. thanks for DarthNinja's work.

Last edited by GameRover; 04-08-2012 at 00:54. Reason: Plus something.
GameRover 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 23:29.


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