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

AMX Mod X 1.8.1 Released


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-16-2008 , 10:12   Re: AMX Mod X 1.8.1 Released
#91

Why would you need to convert an IP to num? just remove the dots "." and store it as a num.Hmm, but you can't convert it again to IP, then just store it as a string?
Alka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-16-2008 , 11:20   Re: AMX Mod X 1.8.1 Released
#92

You could do like:

12.345.678.90
->
012,345,678,900

Just separate each . section into a 3-digit number.

Then you could do:

75,066,074,123
->
75.66.74.123

I'm not very good with manipulating strings to make a function to do this,
but that is a way to maintain the ip and get a unique number out of it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Silaims
Junior Member
Join Date: Jul 2008
Old 10-16-2008 , 14:24   Message
#93

Quote:
Originally Posted by Alka View Post
Why would you need to convert an IP to num? just remove the dots "." and store it as a num.Hmm, but you can't convert it again to IP, then just store it as a string?
It is a simple code for rapid treatment. And it needs me for the site of statistics.
Silaims is offline
BAILOPAN
Join Date: Jan 2004
Old 10-16-2008 , 21:36   Re: Message
#94

Quote:
Originally Posted by Silaims View Post
Thank you. But and other problem appears, it is needed yet oppositely to consider from databases these numbers and to transform them in IP-addresses with points.
Huh? They're still 32-bit, you don't need 64-bit math to bit bang on 32-bit integers.
__________________
egg
BAILOPAN is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-19-2008 , 08:23   Re: AMX Mod X 1.8.1 Released
#95

I still don't get the point of converting an IP address to a num, just store it as a string. If you're worried about database size, you may want to consider normalizing the database some to avoid having repeating IP strings in a data table. ( Making ips it's own table and just storing an INT of the ip table id. )
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
test2
Junior Member
Join Date: Oct 2006
Old 10-20-2008 , 18:19   Re: AMX Mod X 1.8.1 Released
#96

What is about the plugin STATSX and the moduke CSSSTATS? Wherer are they? Which should i use now? I am confused :S
test2 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-20-2008 , 18:34   Re: AMX Mod X 1.8.1 Released
#97

They are still in the same spot. You download the CStrike addon like always
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
test2
Junior Member
Join Date: Oct 2006
Old 10-20-2008 , 19:10   Re: AMX Mod X 1.8.1 Released
#98

thats what i did.

But the modules dont load also the plugins.
test2 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-20-2008 , 19:15   Re: AMX Mod X 1.8.1 Released
#99

Then post in the proper forum for better support
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
test2
Junior Member
Join Date: Oct 2006
Old 10-21-2008 , 04:21   Re: AMX Mod X 1.8.1 Released
#100

in which? StatsX is "a closed plugin". No support for it.
test2 is offline
Closed Thread



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 09:31.


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