Search:

Type: Posts; User: soadlink

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,363

    Alright thanks, your code helped! I ended up...

    Alright thanks, your code helped! I ended up getting the rest:


    function setver($gamever)
    {
    $v = array(0, 0, 0, 0);
    sscanf($gamever, "%d.%d.%d.%d", $v[0], $v[1], $v[2], $v[3]);
    $decimal =...
  2. Replies
    3
    Views
    1,363

    Yea, probably a bad choice for a forum, sorry....

    Yea, probably a bad choice for a forum, sorry. I'll probably head over to phpfreaks or something and ask if I can't get it from this point.

    However your code looks like a good start, and I can...
  3. Replies
    3
    Views
    1,363

    Need help converting a C function to PHP

    Hello,

    I need some help converting a C function to PHP. I know what it can do, but I can't seem to think of how to write the function in PHP. Here is the function in C:

    u32 setver(u8 *gamever)...
  4. Replies
    13
    Views
    3,997

    Sure the algorithm works fine, but its not the...

    Sure the algorithm works fine, but its not the correct form that the server wants. Read my post more carefully and you will see what I am looking for.

    The method you posted does not do it...
  5. Replies
    13
    Views
    3,997

    I will also add something that might help you...

    I will also add something that might help you guys help me. This is code that I got from another forum that XORs each character in a string by 'g' and echo's the result:


    $string =...
  6. Replies
    13
    Views
    3,997

    I am not mainly concerned with getting the string...

    I am not mainly concerned with getting the string back to it's original form, but instead the correct form that the server I am working with wants. This is what should be happening:

    You submit a...
  7. Replies
    5
    Views
    1,108

    You guys are correct, thank you, question...

    You guys are correct, thank you, question answered here.
  8. Replies
    5
    Views
    1,108

    If I try: 12345678 % 0xffff is that the same...

    If I try: 12345678 % 0xffff

    is that the same as

    12345678 % 65535?

    If so, I am getting 25098 as a result when I should be getting 26796 (0x68ac).

    I am stupid when it comes to this -__-,...
  9. Replies
    13
    Views
    3,997

    Here was one attempt, this I beleive would try to...

    Here was one attempt, this I beleive would try to convert the whole string as one... didnt output what I need. Used double \ for every \ because php makes you.



    <?php
    $string =...
  10. Replies
    5
    Views
    1,108

    % function help

    I have some c code I need help explaining what is happening with %:


    string % 0xffff

    If 'string' is equal to 12345678, the outcome of the operation should be 0x68ac (or 26796 in decimal form)....
  11. Replies
    13
    Views
    3,997

    The one for VB is simply Xor (or the one I was...

    The one for VB is simply Xor (or the one I was playing with).

    And the one for PHP is a simple ^. Except these wern't giving me the results I should have.
  12. Replies
    13
    Views
    3,997

    Simple Xor Encryption help

    Hello, I am having trouble understanding the following Xor enryption method written in C:



    void gamespyxor(u_char *data, int len) {
    u_char gamespy[] = "gamespy",
    *gs;

    ...
  13. Replies
    16
    Views
    21,750

    Is there any php code that could display the full...

    Is there any php code that could display the full value of a number such as -6.36165918672933E+84?

    Or maybe even php code that could replicate this entire deal?

    So like if I went to: ...
  14. Replies
    16
    Views
    21,750

    I was looking for a way to convert the end result...

    I was looking for a way to convert the end result to a 'long' integer in visual basic so i could see the XXXXXXXX part of the number as you were talking about.

    I tried:
    text3.text =...
  15. Replies
    16
    Views
    21,750

    Ok I wrote up some code in VB to calculate the...

    Ok I wrote up some code in VB to calculate the string for ABCDEFGHIL:


    Text2.Text = 65 - (0 * 1664117991)
    Text2.Text = 66 - (Text2.Text * 1664117991)
    Text2.Text = 67 - (Text2.Text * 1664117991)...
  16. Replies
    16
    Views
    21,750

    What am I doing with each of these numbers on...

    What am I doing with each of these numbers on every pass after they are calculated?
  17. Replies
    16
    Views
    21,750

    Ok so if the first pass is: 65 - (0*1664117991) ...

    Ok so if the first pass is: 65 - (0*1664117991)

    Would the second pass be: 66 - (65*1664117991)?

    If so, then my output on the second pass would be a huge number.

    And once I do each pass, am I...
  18. Replies
    16
    Views
    21,750

    Thanks for the reply. That helped a tiny bit, but...

    Thanks for the reply. That helped a tiny bit, but I still don't have an idea of where to start on the VB side.

    If I understand you correctly, this code goes through the 'challenge' string (we'll...
  19. Replies
    16
    Views
    21,750

    Explain this C code in english

    Hey, first time poster, and I have never even programmed with C so go easy on me, you'll see what I'm after in a sec.

    I need someone to look at this c code and explain what is going on in plain...
Results 1 to 19 of 19