Raised This Month: $ Target: $400
 0% 

Read Players and Maxplayer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-04-2013 , 19:21   Re: Read Players and Maxplayer
Reply With Quote #1

PHP Code:
stock open_socket(const host[], protocol SOCKET_TCP, &error)
{
    new 
IP[16], Port[6];
    
strtok(hostIPcharsmax(IP), Portcharsmax(Port), ':');
    return 
socket_open(IPPortprotocolerror);

?
__________________
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).

Last edited by YamiKaitou; 06-04-2013 at 19:22.
YamiKaitou is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-04-2013 , 19:27   Re: Read Players and Maxplayer
Reply With Quote #2

Can you give a example?
Like for show hud with players/maxplayers of ip 111.111.111:11111
__________________

Last edited by Jhob94; 06-04-2013 at 19:46.
Jhob94 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-05-2013 , 03:43   Re: Read Players and Maxplayer
Reply With Quote #3

Code:
static Socket, ErrorCode;
Socket = open_socket( "111.111.111:11111", SOCKET_UCP, ErrorCode );
TheDS1337 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-05-2013 , 07:38   Re: Read Players and Maxplayer
Reply With Quote #4

Only need that?
When i saw tutorial of exolent he had lot of things for errors etc
__________________
Jhob94 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-05-2013 , 07:47   Re: Read Players and Maxplayer
Reply With Quote #5

Yes, you will need to do a lot more. Use the existing API plugins for assistance.
__________________
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
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-05-2013 , 08:14   Re: Read Players and Maxplayer
Reply With Quote #6

API of exolent? Or some other?
__________________
Jhob94 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-05-2013 , 08:34   Re: Read Players and Maxplayer
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
API of exolent? Or some other?
OFC
TheDS1337 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-05-2013 , 08:55   Re: Read Players and Maxplayer
Reply With Quote #8

So is use this
And then what i do?...
__________________
Jhob94 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-05-2013 , 09:02   Re: Read Players and Maxplayer
Reply With Quote #9

Quote:
Originally Posted by Jhob94 View Post
So is use this
And then what i do?...
OMG, use the native --"
TheDS1337 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-05-2013 , 09:29   Re: Read Players and Maxplayer
Reply With Quote #10

LOL
But i use server_query_interface or only the API?
Btw with that stock
Quote:
Originally Posted by YamiKaitou View Post
PHP Code:
stock open_socket(const host[], protocol SOCKET_TCP, &error)
{
    new 
IP[16], Port[6];
    
strtok(hostIPcharsmax(IP), Portcharsmax(Port), ':');
    return 
socket_open(IPPortprotocolerror);

Should i edit something in API or include?
__________________
Jhob94 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 16:19.


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