Raised This Month: $ Target: $400
 0% 

sockets problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shino
Senior Member
Join Date: May 2006
Old 07-08-2006 , 13:51   sockets problems
Reply With Quote #1

this is the code i have:
Code:
#include <amxmodx> #include <amxmisc> #include <sockets> new bcSocket new bcIrcServer[26],bcIrcPort,bcIrcNick[26],bcIrcError public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_cvar("bc_irc_server","irc.quakenet.org")     register_cvar("bc_irc_port","6667")     register_cvar("bc_irc_nick","Shino|HLDS")     register_cvar("bc_irc_channel","Shino")             set_task(2.0,"ConnectIrc") } public ConnectIrc() {     get_cvar_string("bc_irc_server",bcIrcServer,25)     bcIrcPort = get_cvar_num("bc_irc_port")     bcSocket = socket_open(bcIrcServer,bcIrcPort,SOCKET_TCP,bcIrcError)     get_cvar_string("bc_irc_nick",bcIrcNick,25)     socket_send(bcSocket,"/nick Shino|n4p",25)     socket_send(bcSocket,"/join Shino",25) }

nothing connects to my channel. i'm completely new to sockets, so i would like to get some help
__________________


+karma if i am helpful
shino is offline
 



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 08:00.


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