Syntax: Select all
import memory
from memory import Convention, DataType
server = memory.find_binary('server')
add_layered_sequence = server[b'\x55\x8B\xEC\x51\x53\xFF\x75\x0C'].make_function(
Convention.THISCALL,
[DataType.INT, DataType.INT, DataType.INT],
DataType.INT
)
add_layered_sequence(entity.index, 0, 0)
https://github.com/ValveSoftware/source ... y.cpp#L639
And got an error:
Code: Select all
RuntimeError: Access violation while reading address '112022711'.
Game CS Source
Please tell me what am i doing wrong?