Raised This Month: $ Target: $400
 0% 

[Compile Error]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-24-2009 , 16:46   [Compile Error]
Reply With Quote #1

PHP Code:
public socket_init()
{
    new 
ip[64],port[6],erre[100],user[32],pass[100]
    new 
cmd[300],botcmd[2049]
    
get_cvar_string("bot_host",ip,63)
    
get_cvar_string("bot_port",port,5)
    
get_cvar_string("bot_user",user,31)
    
get_cvar_string("bot_pass",pass,99)
    (
101bothost socket_open(ip,port,SOCKET_TCP,erre)
    
    
format(cmd,299,"USER %s^r^nPASS %s^r^n")
    
socket_send(bothost,cmd,512)
    
socket_recv(bothost,botcmd,2048)
    
socket_read(botcmd)

HTML Code:
//// Gather.sma
// F:\Counter Strike Servers\elajtjumperz\cstrike\addons\amxmodx\Amxx Script\Gather.sma(101) : error 035: argument type mismatch (argument 2)
//
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 12-24-2009 , 17:13   Re: [Compile Error]
Reply With Quote #2

PORT isn't a string..
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-24-2009 , 17:28   Re: [Compile Error]
Reply With Quote #3

so what?:S
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-24-2009 , 17:29   Re: [Compile Error]
Reply With Quote #4

new ip[64],port,erre[100],user[32],pass[100]
new cmd[300],botcmd[2049]
get_cvar_string("bot_host",ip,63)
port = get_cvar_num("irc_port")
get_cvar_string("bot_user",user,31)
get_cvar_string("bot_pass",pass,99)
bothost = socket_open(ip,port,SOCKET_TCP,erre)

nothing again
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-24-2009 , 17:34   Re: [Compile Error]
Reply With Quote #5

(argument 4) Now is the problem
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 12-24-2009 , 17:34   Re: [Compile Error]
Reply With Quote #6

For my work perfect.

Look socket_open
PHP Code:
native socket_open(const _hostname[], _port_protocol SOCKET_TCP, &_error); 

_error is a int ( cell ).

That return this:
* 0 - no error
* 1 - error while creating socket
* 2 - couldn't resolve hostname
* 3 - couldn't connect to given hostname:port
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 04:07.


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