Skip to main content

GetActorPoolSize

warning

ฟังก์ชั่นนี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!

คำอธิบาย

Gets the highest actorid created on the server.

NameDescription

ตัวอย่าง

SetAllActorsHealth(Float:health)
{
for(new i = 0, j = GetActorPoolSize(); i <= j; i++)
{
if (IsValidActor(i))
{
SetActorHealth(i, health);
}
}
}

ฟังก์ชั่นที่เกี่ยวข้องกัน