Funcidx feature is used to return the ID of a function..
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
printf("ID of OnGameModeInIt: %d", funcidx("OnGameModeInIt"));
return 1;
}
This code will print ID of OngameModeInIt: -1
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
printf("ID of OnGameModeExit: %d", funcidx("OnGameModeExit"));
return 1;
}
Similarly this code will print ID of OnGameModeExit: 1
This function isn't very useful and i can't think of a way to use it but you asked what it was so i told you.