mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CPlayerPed::GetShopName()
This commit is contained in:
parent
48f6041de6
commit
e6e9fc67e2
@ -1028,3 +1028,20 @@ void CPlayerPed::LoadShoppingDataSubsection(PCHAR szSectionName)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
PCHAR CPlayerPed::GetShopName()
|
||||
{
|
||||
if(!m_pPed) return NULL;
|
||||
if(!GamePool_Ped_GetAt(m_dwGTAId)) return NULL;
|
||||
|
||||
DWORD dwPedPtr = (DWORD)m_pPed;
|
||||
PCHAR szResult = NULL;
|
||||
|
||||
_asm mov eax, dwPedPtr
|
||||
_asm mov ebx, [eax+1932]
|
||||
_asm mov szResult, ebx
|
||||
|
||||
return szResult;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -99,6 +99,9 @@ public:
|
||||
|
||||
PCHAR GetLoadedShopName();
|
||||
void LoadShoppingDataSubsection(PCHAR szSectionName);
|
||||
PCHAR GetShopName();
|
||||
|
||||
|
||||
//char _gap0[813];
|
||||
//char _gap0[741];
|
||||
int field_48;
|
||||
|
Loading…
Reference in New Issue
Block a user