Welcome to Ramleague,

Ramleague - the best site for pinoy chat, games chat and mobiles chat,

Sign Up
  1. Hello guest Guest , Are you tired from Ads? to remove some ads you need to register and be active. :D

[Help] Player Crash problem

Discussion in 'Phantomers' started by exBrowser, Nov 21, 2017.

  1. exBrowser Newbie Member

    exBrowser
    Joined:
    Nov 20, 2017
    Gender:
    Male
    Posts:
    2
    Reputation:
    0
    Thanks:
    0
    Bashful

    Player Crash problem

    My player loop is crashing while casting.
    I don't know why, i found playerlist and i can get all players classes from this list.

    My codes ;

    Code:
    DWORD GetPlayerByIndex(int i) {
    
       if (CshModBaseAdr == 0)
         return 0;
    
       g_pRenderer = *(CLSRenderer**)((CshModBaseAdr + PTR) + 0x40);
    
       DWORD dwThisPtr = *(DWORD *)(CshModBaseAdr + PTR);
    
       if (dwThisPtr == 0)
         return 0;
    
       DWORD dwPlayerTable = *(DWORD *)(dwThisPtr + Offset);
    
       if (dwPlayerTable == 0)
         return 0;
    
       if (dwPlayerTable != 0) {
         DWORD* PlayerAddy = (DWORD *)(dwPlayerTable);
    
         return PlayerAddy;
       }
    
       return 0;
    }


    i am using like that ;

    Code:
    for(int i = 0; i < 16; i++) {
    
    CLSPlayer * player = reinterpret_cast<CLSPlayer*>(GetPlayerByIndex(i)); // CRASHING, BUGTRAP REPORTING ACCESS VIOLATION ERROR LOL
    
    }
     
    Last edited: Nov 22, 2017
    • BE A GAMER - RAMLeague
  2. Mae
    No wonder you are gay.
    Staff Member Staff Admin Donator

    Mae
    Joined:
    Feb 9, 2015
    Gender:
    Female
    Posts:
    2,769
    Reputation:
    488
    Thanks:
    1,535
    Location:
    Bed? something wrong?
    In-Love
    United States
    None
    None
    Skype name: Mae
    None
    Fvkyou
    None
    Use FIndPlayerIndex
     
  3. exBrowser Newbie Member

    exBrowser
    Joined:
    Nov 20, 2017
    Gender:
    Male
    Posts:
    2
    Reputation:
    0
    Thanks:
    0
    Bashful
    i don't get it, can you explain?
     
Loading...

Advertisement

Similar Threads Forum Date
DVDFab Player Ultra 6.2.1.0 Multilingual PC Apllications Yesterday at 8:34 PM
DVDFab Player Ultra v6.2.1.0 Multilingual Portable PC Apllications Yesterday at 8:11 PM
DVDFab Player Ultra 6.2.1.0 Multilingual PC Apllications Yesterday at 7:52 PM
Elmedia Player Pro 8.2 macOS PC Apllications Yesterday at 8:24 AM
Elmedia Player Pro 8.2 macOS PC Apllications Wednesday at 7:21 PM
Elmedia Player Pro 8.2 - Universal video player PC Apllications Wednesday at 7:08 PM

Tags for this Thread

:

Share This Page