openmultiplayer / openmultiplayer/open.mp
The 64-bit server crashes when executing print or printf in the scripts
@AmyrAhmady is already working on this.
Since Jan 14, 2024.
- Dominant language
- C++
- Stars
- 641
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Description
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:
- 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;
}
- Click on 'compile and run omp server x64'
- 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.