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 archive_postsperpage - assumed 'archive_postsperpage' (this will throw an Error in a future version of PHP) in ..../archive/index.php on line 456
Packet error [Archive] - Forums

PDA

View Full Version : Packet error



Rzulf
09-15-2015, 12:05 PM
So I have this error
185
when using this packet


procedure EatMeat;
var
PacketBuffer: array [0..200] of byte;
ProcessID: Cardinal;
begin
GetWindowThreadProcessId(FindWindow(okno,Nil), @ProcessID);
PacketBuffer[0] := $0A;
PacketBuffer[1] := $00;
PacketBuffer[2] := $82;
PacketBuffer[3] := $FF;
PacketBuffer[4] := $FF;
PacketBuffer[5] := $00;
PacketBuffer[6] := $00;
PacketBuffer[7] := $00;
PacketBuffer[8] := $F9;
PacketBuffer[9] := $0D;
PacketBuffer[10] := $00;
PacketBuffer[11] := $00;
SendPacket(ProcessID, @PacketBuffer, TRUE, FALSE);
end;

It works when I use it by clicking button, but when I use it in timer this error appears.
How can I fix it?

szulak
09-15-2015, 12:31 PM
This error is pretty self-explanatory. You're reading from incorrect memory address.

Rzulf
09-15-2015, 03:54 PM
I don`t read anything

Blues
09-26-2015, 09:33 PM
Peak bp on SendPacket()