முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetActorPoolSize

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Gets the highest actorid created on the server. Note that in SA:MP this function is broken and will return 0 even when there are no actors. open.mp correct this to return -1, but also deprecate the function in favour of MAX_ACTORS or foreach.

Examples​

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