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

NPC_GetRecordCount

எச்சரிக்கை

செயல்பாடு என்பது omp v1.5.8.3079 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Gets the number of loaded NPC recording files on the server.

Returns​

Returns the number of recording files currently loaded.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/checkrecordcount", true))
{
new count = NPC_GetRecordCount();
SendClientMessage(playerid, 0x00FF00FF, "Total records loaded: %d", count);
return 1;
}
return 0;
}

Notes​

  • Returns the total number of valid recordings in memory
  • Only successfully loaded recordings are counted
  • Recordings persist until explicitly unloaded or server restart