Raised This Month: $ Target: $400
 0% 

Help With Sciript, redirct server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-19-2012 , 15:38   Help With Sciript, redirct server
Reply With Quote #1

i had this cod.
it dosent work..
fix it... thnks..
PHP Code:
#include <amxmodx>
#include <sockets>
public plugin_init() {
     
register_clcmd("say /club","Function")
}
public Function(
index) {
     new 
errorerr[40]
     new 
socket socket_open("212.212.212.212"21212SOCKET_UDPerror)
     switch(
error)
     {
          case 
0err ""
          
case 1..3err " [Down]"
      
}
       
client_print indexprint_chat"212.212.212.212:21212%s"err )
       
socket_close(socket)

NeedYourHelp is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-19-2012 , 16:10   Re: Help With Sciript, redirct server
Reply With Quote #2

Wait, do you want to redirect to that server ip adress?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-20-2012 , 15:22   Re: Help With Sciript, redirct server
Reply With Quote #3

Quote:
Originally Posted by Bilal Pro View Post
Wait, do you want to redirect to that server ip adress?
no!
i just want to know:
if the server is work its print chat: "212.212.212.212:21212" (IPORT)
else its print chat: "212.212.212.212:21212 [Down]"

but my code dose not work.
all the time i see "212.212.212.212:21212".
can you fix it ?

Edit:
now i try this:

PHP Code:
#include <amxmodx>
#include <sockets>

public plugin_init() {
    
register_clcmd("say /club","Function");
}

public Function(
index) {
    new 
error;
    new 
socket socket_open("212.212.212.212"21212SOCKET_UDPerror);
    
    if ((
socket 0) && (error == 0))
        
client_print indexprint_chat"212.212.212.212:21212");
    
    else
        
client_print indexprint_chat"212.212.212.212:21212 [Down]" );
    
    
socket_close(socket);

it dosent work too
(the server dosent work and i see the print "212.212.212.212:21212")
Help..

Last edited by NeedYourHelp; 04-20-2012 at 15:28.
NeedYourHelp is offline
lidor146
Junior Member
Join Date: Aug 2011
Old 04-21-2012 , 03:59   Re: Help With Sciript, redirct server
Reply With Quote #4

Try to take it from xRedirect plugin..
lidor146 is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-21-2012 , 11:17   Re: Help With Sciript, redirct server
Reply With Quote #5

Quote:
Originally Posted by lidor146 View Post
Try to take it from xRedirect plugin..
I need help to fix my plugin..
ty..

Somebody Help ?
NeedYourHelp is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-21-2012 , 11:23   Re: Help With Sciript, redirct server
Reply With Quote #6

Try to look inside, xRedirect plugin its in there
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-21-2012 , 11:35   Re: Help With Sciript, redirct server
Reply With Quote #7

Quote:
Originally Posted by Bilal Pro View Post
Try to look inside, xRedirect plugin its in there
I look inside...
I don`t succeed to fix my plugin..
NeedYourHelp is offline
lidor146
Junior Member
Join Date: Aug 2011
Old 04-22-2012 , 06:53   Re: Help With Sciript, redirct server
Reply With Quote #8

That's a very hard question...
Try to make it like that:
socket_open
socket_send
let some time go by
while (socket_change()) socket_recv()
socket_close

I hope i help you a little (:
lidor146 is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 04-22-2012 , 14:32   Re: Help With Sciript, redirct server
Reply With Quote #9

Quote:
Originally Posted by lidor146 View Post
That's a very hard question...
Try to make it like that:
socket_open
socket_send
let some time go by
while (socket_change()) socket_recv()
socket_close

I hope i help you a little (:
Please help me.
I must get some help with my script.
I try to fix him about a month!!

---
Someone help ?? Please
NeedYourHelp is offline
Old 04-23-2012, 07:56
BadJoke
This message has been deleted by asherkin. Reason: Spam.
Old 04-24-2012, 10:44
NeedYourHelp
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 05-02-2012, 11:34
NeedYourHelp
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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 07:54.


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