コード例 #1
0
ファイル: SAMPFunctions.cpp プロジェクト: OrMisicL/FCNPC
int CSAMPFunctions::GetMaxNPC()
{
	// Call the function
	void *pConfig = (void *)CAddress::VAR_ConfigPtr;
	return pfn__CConfig__GetValueAsInteger(pConfig, "maxnpc");
}
コード例 #2
0
ファイル: SAMPFunctions.cpp プロジェクト: KennyDalglish/fcnpc
int CSAMPFunctions::GetMaxPlayers()
{
	// Call the function
	void *pConfig = *(void **)CAddress::VAR_ConfigPtr;
	return pfn__CConfig__GetValueAsInteger(pConfig, "maxplayers");
}