Skip to content

Latest commit

 

History

History
121 lines (90 loc) · 1.61 KB

system.md

File metadata and controls

121 lines (90 loc) · 1.61 KB

System

GSCLIB_Init()

Initialize gsclib library, this should be called at the start of your mod entry point.

main()
{
	GSCLIB_Init();
}

System(<command>)

Execute a system command.

System("ls");

AsyncStatus(<request>)

Get the status of an async request (MySQL, CURL, FTP, HTTP).

0 = uninitialized 1 = pending 2 = successful 3 = failure

status = AsyncStatus(request);

GetSysTime()

Get the system time in milliseconds.

time = GetSysTime();

Exit(<code>)

Exit the program.

Exit(0);

ComPrint(<fmt>, <?arguments...>)

Print a formatted message to the console output.

a = "Iswenzz";

ComPrint("Hello World!");
ComPrint("Hello %s!", a);

ComPrintLn(<fmt>, <?arguments...>)

Print a formatted message on a new line to the console output.

a = "Iswenzz";

ComPrintLn("Hello World!");
ComPrintLn("Hello %s!", a);
ComPrintLn();

SysPrint(<fmt>, <?arguments...>)

Print a formatted message to the system output.

a = "Iswenzz";

SysPrint("Hello World!");
SysPrint("Hello %s!", a);

SysPrintLn(<fmt>, <?arguments...>)

Print a formatted message on a new line to the system output.

a = "Iswenzz";

SysPrintLn("Hello World!");
SysPrintLn("Hello %s!", a);
SysPrintLn();

CoD4X_Version()

Get the CoD4X version.

version = CoD4X_Version();

CGSC_Version()

Get the CGSC version.

version = CGSC_Version();

GSCLIB_Version()

Get the gsclib version.

version = GSCLIB_Version();