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 misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Container read - need help
Results 1 to 2 of 2

Thread: Container read - need help

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    5

    Container read - need help

    Hello, atm i have this :
    Code:
    backpack_ptr=$9f7498;
    bp_offset1=$8        ;
    bp_offset2=$0         ;
    bp_offset3=$10          ;
    bp_offset4=$28 ;
    
    
    function TMemory.getbpa(id:integer):integer;
    var x:integer;
    begin
    x:=memory.memreadinteger(backpack_ptr);
    x:=memory.memreadinteger(x+bp_offset1);
    x:=memory.memreadinteger(x+bp_offset2+(id*4)+mem.baza);
    x:=memory.memreadinteger(x+bp_offset3+mem.baza);
    Result:=x+bp_offset4+mem.baza;
    
    end;
    
    function tmemory.getbpindex(name:string):integer;
    var id,x:integer;
    begin
    for id:=0 to 3 do begin
    x:=memory.memreadinteger(backpack_ptr);
    x:=memory.memreadinteger(x+bp_offset1+mem.baza);
    x:=memory.memreadinteger(x+bp_offset2+(id*4)+mem.baza);
    x:=memory.memreadinteger(x+bp_offset3+mem.baza);
    if name= memory.memreadstring(x+bp_offset4+mem.baza) then begin result:=id; break end;
    end;
    end;

    But its read only 1-3 containers...

    Can someone help me to change it to read all containers?

    I have some code from c++, but i never use it so i dont understand syntax of c++ etc.
    http://pastebin.com/2eRQhY8U
    http://pastebin.com/2qRRVNZf
    http://pastebin.com/KZDwUgsA

    anyone?

  2. #2
    Junior Member
    Join Date
    Jan 2014
    Posts
    10
    Quote Originally Posted by howcio View Post
    Hello, atm i have this :
    Code:
    backpack_ptr=$9f7498;
    bp_offset1=$8        ;
    bp_offset2=$0         ;
    bp_offset3=$10          ;
    bp_offset4=$28 ;
    
    
    function TMemory.getbpa(id:integer):integer;
    var x:integer;
    begin
    x:=memory.memreadinteger(backpack_ptr);
    x:=memory.memreadinteger(x+bp_offset1);
    x:=memory.memreadinteger(x+bp_offset2+(id*4)+mem.baza);
    x:=memory.memreadinteger(x+bp_offset3+mem.baza);
    Result:=x+bp_offset4+mem.baza;
    
    end;
    
    function tmemory.getbpindex(name:string):integer;
    var id,x:integer;
    begin
    for id:=0 to 3 do begin
    x:=memory.memreadinteger(backpack_ptr);
    x:=memory.memreadinteger(x+bp_offset1+mem.baza);
    x:=memory.memreadinteger(x+bp_offset2+(id*4)+mem.baza);
    x:=memory.memreadinteger(x+bp_offset3+mem.baza);
    if name= memory.memreadstring(x+bp_offset4+mem.baza) then begin result:=id; break end;
    end;
    end;

    But its read only 1-3 containers...

    Can someone help me to change it to read all containers?

    I have some code from c++, but i never use it so i dont understand syntax of c++ etc.
    http://pastebin.com/2eRQhY8U
    http://pastebin.com/2qRRVNZf
    http://pastebin.com/KZDwUgsA

    anyone?

    Its read only 1-3 containers because ...
    "for id:=0 to 3"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •