mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement CVehiclePool::GetModelCount()
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user