Forum > Serverside Modding

[QUESTION] Calculating playerBytes

<< < (2/3) > >>

Смердокрыл:
http://phptester.net/

It returns

NOTICE Undefined variable: row on line number 2

NOTICE Undefined variable: row on line number 3

Rangorn:
[deleted]

Смердокрыл:
It just crashes and says This application is free so please don't break it !
Another website says



Parse error:  syntax error, unexpected '&lt;' in [...][...] on line 1



Also, is there a backward code? To get the bytes from needed character settings?

Kaev:
Try it without the php tags:

--- Code: ---$b = 17367552; // PlayerBytes in Character table
$b2 = 33554436; // PlayerBytes2 in Character table

// Set Character Features
$ha = ($b>>16)%256; // Hairs
$hc = ($b>>24)%256; // Hairs color
$fa = ($b>>8)%256; // Face
$sk = $b%256; // Skin
$fh = $b2%256; // Facial / Others

echo "Hairs : ".$ha."<br>";
echo "Hair Color : ".$hc."<br>";
echo "Face : ".$fa."<br>";
echo "Skin : ".$sk."<br>";
echo "Facial/Other : ".$fh."<br>";
--- End code ---

Смердокрыл:
Thanks, Kaev, it works! What about a backward conversion?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version