SanZoR Posted May 11, 2007 Posted May 11, 2007 (edited) Hello, i got problem with this script: on *:SIGNAL:mta.command:{ if ($3 == !mode) map.mode $1- } alias map.mode { if (!$sock(map.mode)) sockopen map.mode www.xendot.com 80 } on *:SOCKOPEN:map.mode*:{ tokenize 32 %map.mode if ($sockerr > 0) { sockclose $sockname mta.text $1 Error with !mode command! } else { sockwrite -n $sockname GET /mta/map/respawn.php?map= $+ http://fin-mta.zapto.org/maps/ $+ $mta.race($1) $+ .map $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: www.xendot.com sockwrite $sockname $crlf } } on *:SOCKCLOSE:map.mode*:{ unset %tr.* } on *:SOCKREAD:map.mode*:{ var %t sockread %t tokenize 32 %map.mode mta.text $1 $mta.race($1) $+ 's Respawn Mode: $gettok(%t,2-,58) sockclose $sockname } } Example: http://www.xendot.com/mta/map/respawn.php?map=http://fin-mta.zapto.org/maps/flatout.map If you found what is wrong, please help! Thanks for advance! Edited May 11, 2007 by Guest Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
SanZoR Posted May 11, 2007 Author Posted May 11, 2007 Btw, modifed from !trace script! Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
lil Toady Posted May 11, 2007 Posted May 11, 2007 looking at the script i see that you have no idea of what you're doing Too many errors. What is it supposed to do? Do not PM me, im not going to read it anyway.
SanZoR Posted May 12, 2007 Author Posted May 12, 2007 Script should give me answer is there respawn or no. etc. when you type !mode at the game, this script should give me answer is there respawn on/off... Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
lil Toady Posted May 12, 2007 Posted May 12, 2007 erm ok, and why would you want to parse it throught that xendot.com link which returns only an image? Do not PM me, im not going to read it anyway.
SanZoR Posted May 12, 2007 Author Posted May 12, 2007 Its not image? i see text there... Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
lil Toady Posted May 12, 2007 Posted May 12, 2007 show me an example link then so i know the page syntax Do not PM me, im not going to read it anyway.
SanZoR Posted May 12, 2007 Author Posted May 12, 2007 Example: http://www.xendot.com/mta/map/respawn.p ... latout.mapIf you found what is wrong, please help! Thanks for advance! Maybe you should read my post first? Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
SanZoR Posted May 16, 2007 Author Posted May 16, 2007 So, may i have some help? Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
lil Toady Posted May 16, 2007 Posted May 16, 2007 the link is not working for me Do not PM me, im not going to read it anyway.
SanZoR Posted May 17, 2007 Author Posted May 17, 2007 Thats not the point, really... You can type there any map folder if you want, but i wanna see what is technically wrong. Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
Recommended Posts