mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement CVehiclePool::GetModelCount()
This commit is contained in:
parent
05c50379c2
commit
68cd566ffc
@ -25,3 +25,13 @@ BOOL CVehiclePool::Delete(VEHICLEID VehicleID)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int CVehiclePool::GetModelCount()
|
||||
{
|
||||
int iCount=0;
|
||||
for (int i=0; i!=212; i++) {
|
||||
if(field_0[i]) {
|
||||
iCount++;
|
||||
}
|
||||
}
|
||||
return iCount;
|
||||
}
|
||||
|
@ -15,6 +15,8 @@ public:
|
||||
~CVehiclePool();
|
||||
|
||||
BOOL Delete(VEHICLEID VehicleID);
|
||||
|
||||
int GetModelCount();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user