Skip to content

The 64-bit server crashes when executing print or printf in the scripts #835

Open
@FranDevet

Description

@FranDevet

Describe the bug
If you run the 'print' or 'printf' function in OnGamemodeInit/OnFilterScriptInit on an open.mp x64 server, the server will immediately shut down. It works correctly on the Win32 server.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'new filterscript'
#define FILTERSCRIPT

#include <open.mp>

public OnFilterScriptInit()
{
	print(" ");
	print("  -----------------------------------");
	print("  |  My first open.mp filterscript! |");
	print("  -----------------------------------");
	print(" ");
}


public OnFilterScriptExit()
{
	return 1;
}
  1. Click on 'compile and run omp server x64'
  2. See error

Expected behavior
The filter script should execute the print function, and the server should not close.

Screenshots and/or logs
If applicable, add screenshots and/or log output to help explain your problem.

Commit hash in master
Link

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnightly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions