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 =...
Type: Posts; User: soadlink
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 =...
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...
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)...
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...
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 =...
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...
You guys are correct, thank you, question answered here.
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 -__-,...
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 =...
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)....
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.
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;
...
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: ...
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 =...
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)...
What am I doing with each of these numbers on every pass after they are calculated?
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...
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...
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...