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)
(101) bothost = 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))