Jump to content

How to send Random Number to each people (everybody)


zxzxzx
 Share

Recommended Posts

Please see this http://www.autoitscript.com/forum/index.php?showtopic=52121

It has a a function at line 471.

Func _SendAll($sCommand,$sString, $sFrom="")
    
    ;Enter a loop
    For $x = 1 To $MaxUsers
        
        ;if there is a user on that socket then
        If $User_List[$x][0] <> 0 Then
            
            If $sFrom = "" Then
                
                ;Send the message to all the users.
                _TCPSend($User_List[$x][0], $sCommand & Chr(2) & $sString, $User_List[$x][2])
            Else
                
                ;Send a message to all the user that a user said something and encrypt it.
                _TCPSend($User_List[$x][0],$sCommand & Chr(2) & $sFrom & Chr(2) &  $sString, $User_List[$x][2])
            EndIf
        EndIf
    Next
    Return 1
EndFuncoÝ÷ Ù8Zµû§rب¥¥¦Ç§u©²Æ zÚPn´Ûh±éÝE©Ý¢cn·«¶r^¢^¦¦W»-¥ê)ì"ZÞqè¯{TrÝ¥ê)ì"ZÞqè¯{á·ize{¥·z+ÞðZ.®Øize{¥·z+ÞÙ©Ýz×µÂv+^vØZµû§rب«­¢+ÙÕ¹}M¹±° ÀÌØíÍ
½µµ¹°ÀÌØíÍMÑÉ¥¹°ÀÌØíÍɽ´ôÅÕ½ÐìÅÕ½Ðì¤($($í¹Ñȱ½½À(%½ÈÀÌØíàôÄQ¼ÀÌØí5áUÍÉÌ($$($$í¥Ñ¡É¥ÌÕÍȽ¸Ñ¡Ðͽ­ÐÑ¡¸($%%ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt±ÐìÐìÀQ¡¸($$$($$%%ÀÌØíÍɽ´ôÅÕ½ÐìÅÕ½ÐìQ¡¸($$$$($$$$íM¹Ñ¡µÍÍѼ±°Ñ¡ÕÍÉ̸($$$%}Q
AM¹ ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt°ÀÌØíÍ
½µµ¹µÀì
¡È ȤµÀìI¹½´ À°ÄÀ°Ä¤°ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÉt¤($$%±Í($$$$($$$$íM¹µÍÍѼ±°Ñ¡ÕÍÈÑ¡ÐÕÍÈͥͽµÑ¡¥¹¹¹ÉåÁХи($$$%}Q
AM¹ ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt°ÀÌØíÍ
½µµ¹µÀì
¡È ȤµÀìÀÌØíÍɽ´µÀì
¡È ȤµÀìI¹½´ À°ÄÀ°Ä¤°ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÉt¤($$%¹%($%¹%(%9áÐ(%IÑÕɸÄ)¹Õ¹oÝ÷ ØêÞv+eG¶X§{^·jëh×6Case $Button3 ;Say
            _SendAll( "message", Random(0,10,1) & Chr(2) & "1000,0x0000FF,Lucida Console,14", 'Root')
            GUICtrlSetData($Edit1,GUICtrlRead($Edit1) & 'Root: ' & GUICtrlRead($Input1) & @CRLF)
            GUICtrlSetData($Input1, '')

But didn't work. Can you help me ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...