mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Implement and match GetInvalidModelInfoCount()
This commit is contained in:
1 parent
ddb2440aab
commit
29fc46aa00
2 files changed
+15
-1
No files matched your search
@@ -1197,6 +1197,20 @@ void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID)
|
||||
_asm call edx
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
int GetInvalidModelInfoCount()
|
||||
{
|
||||
DWORD *dwModelInfos = (DWORD *)0xA9C068;
|
||||
int iCount = 0;
|
||||
for(int i = 0; i != 19000; i++)
|
||||
{
|
||||
if(dwModelInfos[i] == NULL)
|
||||
iCount++;
|
||||
}
|
||||
return iCount;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// Translate Weapon model ID into actual weapon ID.
|
||||
|
||||
|
||||
Reference in new issue
Block a user