\chapter{test}
\hypertarget{md_docs_2core_2test}{}\label{md_docs_2core_2test}\index{test@{test}}
\hypertarget{md_docs_2core_2test_autotoc_md163}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md163}{autotoc\+\_\+md163}}\label{md_docs_2core_2test_autotoc_md163}
title\+: Arma\+RAMDb -\/ Test icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2core_2test_autotoc_md164}{}\doxysubsection{\texorpdfstring{excerpt\+: Test Function.}{excerpt\+: Test Function.}}\label{md_docs_2core_2test_autotoc_md164}
\hypertarget{md_docs_2core_2test_autotoc_md165}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+test}{ramdb\+\_\+db\+\_\+fnc\+\_\+test}}\label{md_docs_2core_2test_autotoc_md165}
\hypertarget{md_docs_2core_2test_autotoc_md166}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2core_2test_autotoc_md166}
A simple test function for verifying database operations. This function displays the received data in a hint message and logs it to the RPT file. It\textquotesingle{}s primarily used for testing database retrieval operations and callback functionality.\hypertarget{md_docs_2core_2test_autotoc_md167}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2core_2test_autotoc_md167}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_value]\ spawn\ ramdb\_db\_fnc\_test}

\end{DoxyCode}
\hypertarget{md_docs_2core_2test_autotoc_md168}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2core_2test_autotoc_md168}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endhead
{\ttfamily \+\_\+value}   &Array, String, Number, or Boolean   &The value to display and log   &\mbox{[}\mbox{]}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2core_2test_autotoc_md169}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2core_2test_autotoc_md169}
The same value that was passed to the function. Also sets the global variable {\ttfamily ramdb\+\_\+db\+\_\+test} to this value.\hypertarget{md_docs_2core_2test_autotoc_md170}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2core_2test_autotoc_md170}
\hypertarget{md_docs_2core_2test_autotoc_md171}{}\doxysubsubsection{\texorpdfstring{Test with a simple string\+:}{Test with a simple string\+:}}\label{md_docs_2core_2test_autotoc_md171}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}Hello\ World!"{}]\ spawn\ ramdb\_db\_fnc\_test;}

\end{DoxyCode}
\hypertarget{md_docs_2core_2test_autotoc_md172}{}\doxysubsubsection{\texorpdfstring{Test database retrieval by specifying this as callback function\+:}{Test database retrieval by specifying this as callback function\+:}}\label{md_docs_2core_2test_autotoc_md172}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}playerStats"{},\ "{}ramdb\_db\_fnc\_test"{}]\ call\ ramdb\_db\_fnc\_get;}

\end{DoxyCode}
\hypertarget{md_docs_2core_2test_autotoc_md173}{}\doxysubsubsection{\texorpdfstring{Test from client to server\+:}{Test from client to server\+:}}\label{md_docs_2core_2test_autotoc_md173}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}Database\ is\ working!"{}]\ remoteExec\ ["{}ramdb\_db\_fnc\_test"{},\ 2,\ false];}

\end{DoxyCode}
\hypertarget{md_docs_2core_2test_autotoc_md174}{}\doxysubsection{\texorpdfstring{Notes}{Notes}}\label{md_docs_2core_2test_autotoc_md174}

\begin{DoxyItemize}
\item Displays the received value using {\ttfamily hint}
\item Logs the same value to the RPT file
\item Stores the value in the global variable {\ttfamily ramdb\+\_\+db\+\_\+test} for later inspection
\item Commonly used as a callback function for database operations
\item Useful for debugging and verifying data flow
\item Can be called directly or specified as a callback in other functions
\end{DoxyItemize}\hypertarget{md_docs_2core_2test_autotoc_md175}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2core_2test_autotoc_md175}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+get}\+: Retrieves values from the database
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+handler}\+: Routes data to callback functions
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Manages the callback system
\end{DoxyItemize}\hypertarget{md_docs_2core_2test_autotoc_md176}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2core_2test_autotoc_md176}
\doxysectlink{md_docs_2core_2add_task}{Add Task}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2handler}{Handler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2init}{Init}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2print_addon_name}{Print Addon Name}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2process_queue}{Process Queue}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2scheduler}{Scheduler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2test}{Test}{0} 