mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +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;
|
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();
|
~CVehiclePool();
|
||||||
|
|
||||||
BOOL Delete(VEHICLEID VehicleID);
|
BOOL Delete(VEHICLEID VehicleID);
|
||||||
|
|
||||||
|
int GetModelCount();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user