Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Sendmsg
Results 1 to 4 of 4

Thread: Sendmsg

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    16

    Sendmsg

    Im doin a Master / slave program~
    And i got sendmsg function.
    works good in default. when im tryin to msg ppl. im doin sendmsg(*name*Text)
    but aint working
    any1 got a msgperson function?
    I lost all my functions etc at a HD crash.
    btw great to have TP up running again.
    // Hotas

  2. #2

    Sendmsg

    Hello, try it:

    Code:
    packetBuffer(0) = LongToByte((Len(Character) + (Len(text)) + 6), 1)
    packetBuffer(1) = LongToByte((Len(Character) + (Len(text)) + 6), 2)
    packetBuffer(2) = &H96
    packetBuffer(3) = &H4
    packetBuffer(4) = Len(Character)
    packetBuffer(5) = &H0
    For x = 1 To Len(Character)
        packetBuffer(x + 5) = Asc(Mid(Character, x, 1))
    Next x
    packetBuffer(Len(Character) + 6) = LongToByte(Len(text), 1)
    packetBuffer(Len(Character) + 7) = LongToByte(Len(text), 2)
    For x = 1 To Len(textt)
        packetBuffer(Len(Character) + 7 + x) = Asc(Mid(text, x, 1))
    Next x
    Character is name of char that you want send a message
    text is a text to send

    I hope that it help you

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    16

    Sendmsg

    Thank you very much :P,
    // Hotas

  4. #4
    Junior Member
    Join Date
    Apr 2007
    Posts
    12

    Sendmsg

    nvm.........10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •